16 lines
522 B
Lua
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)
|