mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-10-20 20:55:05 +01:00
fix(zones): set zone distance on creation (#44)
* fix(zones): set zone distance on creation Signed-off-by: PotatoFarmer441 <helioau@live.com.au> * Update shared.lua Signed-off-by: PotatoFarmer441 <helioau@live.com.au> --------- Signed-off-by: PotatoFarmer441 <helioau@live.com.au>
This commit is contained in:
1 parent
ac9625d33a
commit
d6417b9a84
1 file changed
+2
@@ -345,6 +345,8 @@ local function setZone(data)
|
||||
data.contains = data.contains or contains
|
||||
|
||||
if lib.context == 'client' then
|
||||
local coords = cache.coords or GetEntityCoords(cache.ped)
|
||||
data.distance = #(data.coords - coords)
|
||||
data.setDebug = setDebug
|
||||
|
||||
if data.debug then
|
||||
|
||||
Reference in new issue
Block a user