[Include] Vehicle Extended Functions
#21

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)
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); 
- Imported callbacks (from vehicleplus.inc)
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); 
- Added functions:
PHP Code:
Float:GetVehicleModelTopSpeed(modelid);

GetVehicleModelName(modelid);
GetVehicleName(vehicleid); 
- Renamed function:
PHP Code:
GetVehicleDoorAmountByModelid -> GetVehicleModelDoorAmount 
- Updated function:
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
- Updated callback:
Code:
OnPlayerShotVehicle(playerid,vehicleid,weaponid,Float:amount,bodypart);
- Added definitions:
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 
- Added option for change vehicle names (default English):
PHP Code:
new const EVF_VehicleName[MAX_VEHICLE_MODELS][] = {
    
"Landstalker""Bravura""Buffalo", ...
}

#include <SAM/EVF> 
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.
Reply


Messages In This Thread
Extended Vehicle Functions (EVF V3) - by AbyssMorgan - 02.07.2016, 18:22
Re: Vehicle Extended Functions - by JustMe.77 - 02.07.2016, 22:37
Re: Vehicle Extended Functions - by SetPlayerNameTag - 03.07.2016, 03:41
Re: Vehicle Extended Functions - by Freaksken - 15.08.2016, 10:09
Re: Vehicle Extended Functions - by AbyssMorgan - 15.08.2016, 18:50
Re: Vehicle Extended Functions - by AbyssMorgan - 22.11.2016, 16:35
Re: Vehicle Extended Functions - by Unrea1 - 22.11.2016, 19:01
Re: Vehicle Extended Functions - by Ivan_Ino - 22.11.2016, 19:49
Re: Vehicle Extended Functions - by AbyssMorgan - 24.11.2016, 16:34
Re: Vehicle Extended Functions - by ISmokezU - 24.11.2016, 16:39
Re: Vehicle Extended Functions - by AbyssMorgan - 09.12.2016, 20:03
Re: Vehicle Extended Functions - by Fairuz - 17.04.2017, 08:34
Re: Vehicle Extended Functions - by AbyssMorgan - 17.04.2017, 11:22
Re: Vehicle Extended Functions - by Fairuz - 17.04.2017, 15:10
Re: Vehicle Extended Functions - by AbyssMorgan - 17.04.2017, 15:32
Re: Vehicle Extended Functions - by AbyssMorgan - 17.04.2017, 21:12
Re: Vehicle Extended Functions - by Fairuz - 20.04.2017, 17:01
Re: Vehicle Extended Functions - by Gammix - 20.04.2017, 17:19
Re: Vehicle Extended Functions - by Max_Andolini - 20.04.2017, 17:45
Re: Vehicle Extended Functions - by Mutha_X - 20.04.2017, 20:54
Re: Vehicle Extended Functions - by AbyssMorgan - 25.04.2017, 08:02
Re: Vehicle Extended Functions - by AndreiWow - 25.04.2017, 08:27
Re: Vehicle Extended Functions - by AbyssMorgan - 30.04.2017, 13:52
Re: Vehicle Extended Functions - by Spoookymon - 01.05.2017, 11:02
Re: Vehicle Extended Functions - by AbyssMorgan - 16.05.2017, 07:49
Re: Vehicle Extended Functions - by AbyssMorgan - 19.07.2017, 20:50
Re: Vehicle Extended Functions - by Pottus - 20.07.2017, 01:06
Re: Vehicle Extended Functions - by SmileJack - 20.07.2017, 03:36
Re: Vehicle Extended Functions - by AbyssMorgan - 11.08.2017, 17:01
Re: Vehicle Extended Functions - by AbyssMorgan - 22.08.2017, 15:41
Re: Vehicle Extended Functions - by DevHarden - 04.10.2017, 05:36
Re: Vehicle Extended Functions - by AbyssMorgan - 04.10.2017, 05:45
Re: Vehicle Extended Functions - by DevHarden - 04.10.2017, 06:31
Re: Vehicle Extended Functions - by Zeth - 17.11.2017, 05:20
Re: Vehicle Extended Functions - by AbyssMorgan - 17.11.2017, 15:07
Re: Vehicle Extended Functions - by AbyssMorgan - 19.12.2017, 16:30
Re: Vehicle Extended Functions - by Switel12 - 22.01.2018, 15:21
Re: Vehicle Extended Functions - by Ritzy2K - 22.01.2018, 16:28
Re: Vehicle Extended Functions - by Gammix - 22.01.2018, 18:12
Re: Vehicle Extended Functions - by Switel12 - 22.01.2018, 18:33
Re: Vehicle Extended Functions - by Gammix - 22.01.2018, 18:37
Re: Vehicle Extended Functions - by Ritzy2K - 22.01.2018, 19:36
Re: Vehicle Extended Functions - by KatarinaCalzaghe - 13.02.2018, 13:41
Re: Vehicle Extended Functions - by KatarinaCalzaghe - 13.02.2018, 14:08
Re: Vehicle Extended Functions - by KatarinaCalzaghe - 13.02.2018, 14:30
Re: Vehicle Extended Functions - by KingHual - 13.02.2018, 14:47
Re: Vehicle Extended Functions - by KatarinaCalzaghe - 13.02.2018, 14:53
Re: Vehicle Extended Functions - by PepsiCola23 - 27.02.2018, 09:01
Re: Vehicle Extended Functions - by JustNothing - 31.03.2018, 17:58
Re: Vehicle Extended Functions - by Azaroth - 28.10.2018, 20:18
Re: Vehicle Extended Functions - by AbyssMorgan - 13.10.2019, 14:21
Re: Vehicle Extended Functions - by SkyFlare - 03.06.2020, 14:00

Forum Jump:


Users browsing this thread: 4 Guest(s)