1
0
mirror of https://github.com/citizenfx/cfx-server-data.git synced 2026-05-16 18:32:32 +08:00

reorganize resource directories

This commit is contained in:
astatine
2019-12-10 09:54:29 +01:00
Unverified
parent 60da977c02
commit 51cc79eda2
77 changed files with 7 additions and 1518 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)