A keypad script for FiveM.
- Place the
md-keypad
folder in your server's resources directory. - Add
ensure md-keypad
to your server.cfg file.
The export must be placed server-side. Use the following format to access the keypad functionality:
exports['md-keypad']:Open(player, password, callback)
exports['md-keypad']:Close(player)
exports['md-keypad']:Open(source, 'password', function()
print('Success!')
end)
The function will only call if the user enters the correct password. Maximum of 4 characters for a password.