Files
Elite-Gaming-FiveM/resources/jraxion_handlingeditor/server/server.lua
T
2025-07-09 22:35:54 -07:00

16 lines
522 B
Lua

while GetCurrentResourceName() ~= "jraxion_handlingeditor" do
Wait(2000)
print("Please do not rename the resource to jraxion_handlingeditor, it will break the resource.")
end
RegisterCommand('staffhandlingeditor', function(source, args, rawCommand)
-- Add your permission system here.
if IsPlayerAceAllowed(source, 'admin') or IsPlayerAceAllowed(source, 'command') then
TriggerClientEvent('jraxion_handlingeditor:openHandlingEditor', source)
else
print('No permission')
end
end)