mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56:03 +01:00
refactor(imports/points): rename point.callback to point.inside
This commit is contained in:
@@ -23,7 +23,7 @@ game 'gta5'
|
|||||||
--[[ Resource Information ]]--
|
--[[ Resource Information ]]--
|
||||||
name 'ox_lib'
|
name 'ox_lib'
|
||||||
author 'Linden'
|
author 'Linden'
|
||||||
version '2.0.2'
|
version '2.1.0'
|
||||||
repository 'https://github.com/overextended/ox_lib'
|
repository 'https://github.com/overextended/ox_lib'
|
||||||
description 'A library of shared functions to utilise in other resources.'
|
description 'A library of shared functions to utilise in other resources.'
|
||||||
|
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ CreateThread(function()
|
|||||||
if distance <= point.distance then
|
if distance <= point.distance then
|
||||||
point.currentDistance = distance
|
point.currentDistance = distance
|
||||||
|
|
||||||
if point.callback then
|
if point.inside then
|
||||||
nearby[#nearby + 1] = point
|
nearby[#nearby + 1] = point
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -53,7 +53,7 @@ CreateThread(function()
|
|||||||
while true do
|
while true do
|
||||||
Wait(0)
|
Wait(0)
|
||||||
for i = 1, #nearby do
|
for i = 1, #nearby do
|
||||||
nearby[i]:callback()
|
nearby[i]:inside()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|||||||
Reference in New Issue
Block a user