Problem with SetVehicleParamsForPlayer
#1

Hi guys, when i set the doors locked with SetVehicleParamsForPlayer and a player attempts to enter into the vehicle that is locked, there is a problem;
If the door is open (door physic of vehicle) and i SetVehicleParamsForPlayer to 1, however, the player enter into the vehicle. How can i solve this problem?

(Sorry for my bad English)
Reply
#2

Use the function OnPlayerEnterVehicle or OnPlayerStateChange and when that player has locked it, make it so it removes them from the vehicle
Reply
#3

Mmh.. how can i detect if a door is opened or closed?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)