A simple script to have a keypad inside of your city.
- Download the latest version of the script using the "Download ZIP" button on the right side of this page.
- Extract the ZIP file.
- Rename the folder to
sticks-keypad
and copy it to yourresources
directory. - Add
ensure sticks-keypad
to yourserver.cfg
. - All done, start your server and enjoy!
You can configure the script in the server/server.lua
file. To add a new entry, you need the door ID, the cords of the door, the teleport cords, and the password. An example is already in the file to help you understand how to add a new entry, and can also be seen below.
-- Example
{1, {x = -3029.3825683594, y = 72.813552856445, z = 11.4}, {x = -3031.3232421875, y = 93.021644592285, z = 12.346099853516}, "1234"},
This script used a boilerplate from NPWD. Thank you for the boilerplate!