Locking vehicles
#1

I've had issues with locking vehicle for players except the driver.

This is my whole code
HTML Code:
new engine, lights, alarm, doors, bonnet, boot, objective;
GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(vehicleid, engine, lights, alarm, 1, bonnet, boot, objective);

SetVehicleParamsForPlayer(vehicleid, playerid, 0, 0);
If the player is driver of the vehicle won't be unlocked for him but if he is a passenger it will be.
I had to use SetVehicleParamsForPlayer to lock the vehicle properly? If it's not necessary I do not want to, becouse I had to handle the locking if the vehicle streams to the player.
Is this a SA-MP but or what?
Reply


Messages In This Thread
Locking vehicles - by m4karow - 09.04.2019, 18:00
Re: Locking vehicles - by Markski - 09.04.2019, 20:02
Re: Locking vehicles - by Logic_ - 10.04.2019, 13:22

Forum Jump:


Users browsing this thread: 1 Guest(s)