mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-18 23:46:03 +01:00
fix(client/zones): race condition when setting debug function
This commit is contained in:
@@ -376,7 +376,11 @@ lib.zones = {
|
|||||||
data.setDebug = setDebug
|
data.setDebug = setDebug
|
||||||
|
|
||||||
if data.debug then
|
if data.debug then
|
||||||
data:setDebug(true, data.debugColour)
|
data.debug = nil
|
||||||
|
|
||||||
|
CreateThread(function()
|
||||||
|
data:setDebug(true, data.debugColour)
|
||||||
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
Zones[data.id] = data
|
Zones[data.id] = data
|
||||||
|
|||||||
Reference in New Issue
Block a user