Hello community, this is my first script. These are two commands, one to close the door of your vehicle from inside while being a driver and another to open it from the outside.
This script is very simple but useful. The code to check if the player is near the vehicle was taken from an external script.
◘ Image 1 (/lock) https://i.imgur.com/IT4oxGc.png
◘ Image 2 (/lock) https://i.imgur.com/abBAjIB.png
-- You aren't close to any vehicle --
◘ Image 3 (/unlock) https://i.imgur.com/NSHFcvp.png
◘ Image 4 (/unlock) https://i.imgur.com/AkFH49q.png
◘ Image 5 (/unlock) https://i.imgur.com/S2dNecJ.png
◘ Pastebin ( https://pastebin.com/3czbqcdy )
◘ Github
◘ You will need: <zcmd>
Obviously this is a loose code, you must place this code inside your gamemode or inside your chat script.
I hope you find it useful.
PS: Sorry for my English, it's not my natural language.
This script is very simple but useful. The code to check if the player is near the vehicle was taken from an external script.
◘ Image 1 (/lock) https://i.imgur.com/IT4oxGc.png
◘ Image 2 (/lock) https://i.imgur.com/abBAjIB.png
-- You aren't close to any vehicle --
◘ Image 3 (/unlock) https://i.imgur.com/NSHFcvp.png
◘ Image 4 (/unlock) https://i.imgur.com/AkFH49q.png
◘ Image 5 (/unlock) https://i.imgur.com/S2dNecJ.png
◘ Pastebin ( https://pastebin.com/3czbqcdy )
◘ Github
◘ You will need: <zcmd>
Obviously this is a loose code, you must place this code inside your gamemode or inside your chat script.
I hope you find it useful.
PS: Sorry for my English, it's not my natural language.