Files
Elite-Gaming-FiveM/resources/jraxion_handlingeditor/server/server.lua
T
2025-07-09 21:47:39 -07:00

16 lines
517 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('handlingeditor', 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)