[Include] Simple Vehicle Functions
#3

Quote:
Originally Posted by Crayder
View Post
I suggest adding part fixing.

Check this out:
http://forum.sa-mp.com/showpost.php?&p=3646664

You could use the code from any of those lines. Like a FixWindshield function:
pawn Code:
stock FixWindshield(vehicleid) {
    new panels, doors, lights, tires;
    GetVehicleDamageStatus(vehicleid, panels, doors, lights, tires);
    return UpdateVehicleDamageStatus(vehicleid, panels & 0xFFFF00FFFFFFFF, doors, lights, tires);
}
Yeah thanks for reminding me, I do plan to add this, just I gotta go over all basics first, my plan is to finish off the list with all SetVehicleParamsEx first and then move onto some more advanced stuff, but thanks still, I plan to add it



UPDATE:
Quote:

Updates
v.1.1
Added callback public OnVehicleStart(vehicleid)
Added callback public OnVehicleStop(vehicleid)
Added lock functionality
Example code for v1.1: http://pastebin.com/zLyibUuE
Added if defined (Thanks to Crayder) so there wont be any errors or warnings with this

Reply


Messages In This Thread
Simple Vehicle Functions - by TwinkiDaBoss - 25.01.2016, 17:46
Re: Simple Vehicle Functions - by Crayder - 25.01.2016, 18:10
Re: Simple Vehicle Functions - by TwinkiDaBoss - 25.01.2016, 18:15
Re: Simple Vehicle Functions - by PT - 25.01.2016, 21:03
Re: Simple Vehicle Functions - by TwinkiDaBoss - 25.01.2016, 21:05
Re: Simple Vehicle Functions - by Spydah - 18.02.2016, 16:56
Re: Simple Vehicle Functions - by Crayder - 18.02.2016, 20:19

Forum Jump:


Users browsing this thread: 1 Guest(s)