add runcode resource

This commit is contained in:
moscovium
2017-09-05 11:58:39 +02:00
parent 2415bad533
commit cbee7d1960
7 changed files with 280 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
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)