mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-16 09:43:56 +00:00
fix(client/zones): race condition when setting debug function
This commit is contained in:
1 parent
7c0ee46a99
commit
fe0f28921f
1 file changed
+5
-1
@@ -376,7 +376,11 @@ lib.zones = {
|
||||
data.setDebug = setDebug
|
||||
|
||||
if data.debug then
|
||||
data:setDebug(true, data.debugColour)
|
||||
data.debug = nil
|
||||
|
||||
CreateThread(function()
|
||||
data:setDebug(true, data.debugColour)
|
||||
end)
|
||||
end
|
||||
|
||||
Zones[data.id] = data
|
||||
|
||||
Reference in new issue
Block a user