09.04.2019, 18:00
I've had issues with locking vehicle for players except the driver.
This is my whole code
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?
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);
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?