πhow to install
How to use this script?
Export
if exports["mdev-staffduty"] and not exports["mdev-staffduty"]:inDienst(playerId) then
TriggerClientEvent('esx:showNotification', playerId, 'You are not in staffduty', 5000)
return
endExample
RegisterCommand(name, function(playerId, args, rawCommand)
local command = Core.RegisteredCommands[name]
if not command.allowConsole and playerId == 0 then
print(('[^3WARNING^7] ^5%s'):format(_U('commanderror_console')))
else
local xPlayer, error = ESX.GetPlayerFromId(playerId), nil
if exports["mdev-staffduty"] and not exports["mdev-staffduty"]:inDienst(playerId) then
TriggerClientEvent('esx:showNotification', playerId, 'You are not in staffduty', 5000)
return
end
if command.suggestion then
if command.suggestion.validate then
if #args ~= #command.suggestion.arguments then
error = _U('commanderror_argumentmismatch', #args, #command.suggestion.arguments)
end
endLast updated