single resource concept + first attempt to reorganize code

This commit is contained in:
Jérémie N'gadi
2020-05-11 04:21:10 +02:00
parent 383aceffb4
commit 390cce6195
100 changed files with 7118 additions and 282 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ RegisterNUICallback('__chunk', function(data, cb)
if data['end'] then
local msg = json.decode(Chunks[data.id])
TriggerEvent(GetCurrentResourceName() .. ':message:' .. data.__type, msg)
TriggerEvent(data.__namespace .. ':message:' .. data.__type, msg)
Chunks[data.id] = nil
end