Events/Exports
Jail Check Exports
local inJail = exports['SickJail']:GetJailTime()
if inJail then
print('You are in jail')
else
print('Yay you are NOT in Jail!')
endlocal inJail = exports['SickJail']:GetJailTime()
if inJail then
exports['SickJail']:DeathJailLogin()
else
print('Don't send to jail')
endSend To Jail Export/Event
Export
exports('SendPlayerToJail',SendPlayerToJail)local player = GetPlayerServerId(CLOSEST_PLAYER)
local time = 5 -- Amount of time for jail
local reason = String -- optional (Defaults to 'MDT Sentence') Mainly for webhooks
exports.SickJail:SendPlayerToJail(player,time,reason or nil)Event
Last updated