This is a simple lock system, without the use of standard vehicle param functions, and when you lock your own car with this script running you will actually be locked out and not just others. This is good for roleplay servers etc.

I won't go into more detail as the script is really that simple, just thought others might find it useful.

Commands:/lock - (/lock when your inside a vehicle, /lock beside the vehicle to unlock it from the outside).

Norn: You can add an animation to your script if the vehicle is locked so the player tries to enter it. You know like here on samp when the vehicle is locked and player tries to enter as passenger. That animation. That would be great even if the player tries to enter the car as a driver

Norn: You can add an animation to your script if the vehicle is locked so the player tries to enter it. You know like here on samp when the vehicle is locked and player tries to enter as passenger. That animation. That would be great

Good idea , i would do it although i don't know how to check what side of a vehicle a player is at.