25.04.2017, 08:02
Update v3.0.0:
- Merged includes EVF.inc and vehicleplus.inc -> EVF.inc
- Minor code optimizations
- Added update checker
- Added support for STREAMER_ENABLE_TAGS
- Added support for FoxForeach.inc and foreach.inc
- Added support for 3DTryg.inc (some improvements)
- Added support for StreamerFunction.inc (some improvements)
- Update compatibility for YSF.inc
- Update callbacks type CallLocalFunction -> CallRemoteFunction
- Imported functions (from vehicleplus.inc)
- Imported callbacks (from vehicleplus.inc)
- Added functions:
- Renamed function:
- Updated function:
- Updated callback:
- Added definitions:
- Added option for change vehicle names (default English):
Notice:
- Some vehiclesplus.inc definitions has been changed, please read include head for get actual functions/definitions
- If you see any bug of this release, send report to me, or post here.
More functions next time.
- Merged includes EVF.inc and vehicleplus.inc -> EVF.inc
- Minor code optimizations
- Added update checker
- Added support for STREAMER_ENABLE_TAGS
- Added support for FoxForeach.inc and foreach.inc
- Added support for 3DTryg.inc (some improvements)
- Added support for StreamerFunction.inc (some improvements)
- Update compatibility for YSF.inc
- Update callbacks type CallLocalFunction -> CallRemoteFunction
- Imported functions (from vehicleplus.inc)
PHP Code:
Float:EVF::GetVehicleSpeed(vehicleid,bool:kmh = true,Float:velx = 0.0,Float:vely = 0.0,Float:velz = 0.0);
GetVehicleSpawnInfo(vehicleid,&Float:x,&Float:y,&Float:z,&Float:rotation,&worldid,&interiorid);
SetVehicleSpawnInfo(vehicleid,Float:x,Float:y,Float:z,Float:rotation,worldid,interiorid);
RemoveVehiclePaintjob(vehicleid);
Float:GetVehicleSpeedCap(vehicleid);
SetVehicleSpeedCap(vehicleid,Float:maxspeed);
DisableVehicleSpeedCap(vehicleid);
IsVehicleOccupied(vehicleid);
IsVehicleFuelToggled(vehicleid);
ToggleVehicleFuel(vehicleid,bool:toggle);
IsVehicleSticky(vehicleid);
ToggleVehicleSticky(vehicleid,bool:toggle);
IsUnoccupiedDamageToggled(vehicleid);
ToggleUnoccupiedVehicleDamage(vehicleid,bool:toggle);
IsPetrolCapDestroyToggled(vehicleid);
ToggleVehiclePetrolCapDestroy(vehicleid,bool:toggle);
RestoreVehicleHorn(vehicleid);
GetVehicleHorn(vehicleid);
SetVehicleHorn(vehicleid,soundid);
GetVehicleFuel(vehicleid);
SetVehicleFuel(vehicleid,fuel);
GetVehicleBomb(vehicleid);
IsVehicleBombed(vehicleid);
RemoveVehicleBomb(vehicleid);
SetVehicleBomb(vehicleid,time = 1000);
IsVehicleBombActivated(vehicleid);
IsVehicleDamageToggled(vehicleid,type);
ToggleVehicleDamageUpdate(vehicleid,type,toggle);
TeleportVehicle(vehicleid,Float:x,Float:y,Float:z,Float:angle,worldid = -1,interiorid = -1);
GetVehicleSlotAttachedObject(vehicleid,slot);
IsObjectAttachedToVehicle(objectid,vehicleid);
EVF::UpdateVehicleDamage(vehicleid,type);
EVF::UpdateVehicleDamageStatus(vehicleid,type,update);
EVF::GetVehicleDamageStatus(vehicleid,type);
EditVehicle(playerid,vehicleid);
EditVehicleObject(playerid,vehicleid,STREAMER_TAG_OBJECT objectid);
PHP Code:
OnVehiclePosChange(vehicleid,Float:newx,Float:newy,Float:newz,Float:newangle,Float:oldx,Float:oldy,Float:oldz,Float:oldangle);
OnVehicleVelocityChange(vehicleid,Float:newx,Float:newy,Float:newz,Float:oldx,Float:oldy,Float:oldz);
OnVehicleHealthChange(vehicleid,Float:newhealth,Float:oldhealth);
OnVehicleFuelChange(vehicleid,newfuel,oldfuel);
OnVehicleBombDeactivate(vehicleid);
OnVehicleBombExplode(vehicleid);
OnPlayerShotVehicle(playerid,vehicleid,weaponid,Float:amount,bodypart);
OnPlayerEditVehicle(playerid,vehicleid,response,Float:fX,Float:fY,Float:fZ,Float:fRotZ);
OnPlayerEditVehicleObject(playerid,vehicleid,response,Float:x,Float:y,Float:z,Float:rx,Float:ry,Float:rz);
OnPlayerReachSpeedCapLimit(playerid,vehicleid,Float:speed);
OnVehicleBombActivate(vehicleid);
PHP Code:
Float:GetVehicleModelTopSpeed(modelid);
GetVehicleModelName(modelid);
GetVehicleName(vehicleid);
PHP Code:
GetVehicleDoorAmountByModelid -> GetVehicleModelDoorAmount
Code:
CreateVehicle(modelid,Float:x,Float:y,Float:z,Float:rotation,color1 = -1,color2 = -1,respawn_delay = -1,addsiren = 0,worldid = 0,interiorid = 0,bool:unoccupied_damage = false); AddStaticVehicle -> CreateVehicle AddStaticVehicleEx -> CreateVehicle
Code:
OnPlayerShotVehicle(playerid,vehicleid,weaponid,Float:amount,bodypart);
PHP Code:
RESET_PAINTJOB_ID
MAX_VEHICLE_PARAMS
VEHICLE_UPDATE_INTERVAL
MAX_VEHICLE_ATTACHED_OBJECTS
VEHICLE_BODYPART_UNKNOWN
VEHICLE_BODYPART_FL_WHEEL //front left
VEHICLE_BODYPART_FR_WHEEL //front right
VEHICLE_BODYPART_BL_WHEEL //back left
VEHICLE_BODYPART_BR_WHEEL //back right
VEHICLE_BODYPART_PETROLCAP
VEHICLE_DAMAGE_PANELS
VEHICLE_DAMAGE_DOORS
VEHICLE_DAMAGE_LIGHTS
VEHICLE_DAMAGE_TIRES
PHP Code:
new const EVF_VehicleName[MAX_VEHICLE_MODELS][] = {
"Landstalker", "Bravura", "Buffalo", ...
}
#include <SAM/EVF>
- Some vehiclesplus.inc definitions has been changed, please read include head for get actual functions/definitions
- If you see any bug of this release, send report to me, or post here.
More functions next time.