1
0
mirror of https://github.com/citizenfx/cfx-server-data.git synced 2025-01-11 00:03:18 +08:00
cfx-server-data/resources/runcode/runcode_sv.lua

7 lines
283 B
Lua
Raw Normal View History

2017-09-05 17:58:39 +08:00
RegisterCommand('run', function(source, args, rawCommand)
local res, err = RunCode('return ' .. rawCommand:sub(4))
end, true)
RegisterCommand('crun', function(source, args, rawCommand)
TriggerClientEvent('runcode:gotSnippet', source, -1, 'return ' .. rawCommand:sub(5))
end, true)