Lock all cars and use the locked animation
#1

Hello,

Im making a nice DM map, i have spawned some vehicle, but they are only for decoration, but I want to disallow the player to enter them, and if they try to enter them, it will do the locked animation.

Which are:
CAR_doorlocked_LHS
CAR_doorlocked_RHS

Anyone?

(P.S. Im using SAMP 0.3, but im not sure if that has anything to do with this)
Reply
#2

Quote:
Originally Posted by Seif_ [adream-rp.com
]
SetVehicleParamsForPlayer
It locks it, but doesn't show the locked animation when you try to get in =/
Reply
#3

Quote:
Originally Posted by Seif_ [adream-rp.com
]
I think in 0.3 you can detect if the player is attempting to open the door. If so, just apply the animation. But before, check if the car is on your left or right(using OnPlayerEnterVehicle) and use the correct animation.
Okay thanks!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)