mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-19 16:06:02 +01:00
refactor: change event names from lualib to ox_lib
This commit is contained in:
2
init.lua
2
init.lua
@@ -186,7 +186,7 @@ Citizen.CreateThreadNow(function()
|
|||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
AddEventHandler('lualib:updateCache', function(data)
|
AddEventHandler('ox_lib:updateCache', function(data)
|
||||||
for key, value in pairs(data) do
|
for key, value in pairs(data) do
|
||||||
cache[key] = value
|
cache[key] = value
|
||||||
|
|
||||||
|
|||||||
2
resource/cache/client.lua
vendored
2
resource/cache/client.lua
vendored
@@ -54,7 +54,7 @@ CreateThread(function()
|
|||||||
-- end
|
-- end
|
||||||
|
|
||||||
if next(update) then
|
if next(update) then
|
||||||
TriggerEvent('lualib:updateCache', update)
|
TriggerEvent('ox_lib:updateCache', update)
|
||||||
table.wipe(update)
|
table.wipe(update)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
RegisterNetEvent('lualib:setVehicleProperties', function(netid, data)
|
RegisterNetEvent('ox_lib:setVehicleProperties', function(netid, data)
|
||||||
lib.setVehicleProperties(NetToVeh(netid), data)
|
lib.setVehicleProperties(NetToVeh(netid), data)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user