mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56: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
|
||||
|
||||
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