Initial commit

This commit is contained in:
Jacob
2021-12-03 01:19:31 +00:00
parent c1add166a1
commit f8efc78730
807 changed files with 201658 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
RegisterNetEvent('runcode:gotSnippet')
AddEventHandler('runcode:gotSnippet', function(id, lang, code)
local res, err = RunCode(lang, code)
if not err then
if type(res) == 'vector3' then
res = json.encode({ table.unpack(res) })
elseif type(res) == 'table' then
res = json.encode(res)
end
end
TriggerServerEvent('runcode:gotResult', id, res, err)
end)