From 500315ddaa053fff348f4bee59c3031fa1caa17c Mon Sep 17 00:00:00 2001 From: Linden <65407488+thelindat@users.noreply.github.com> Date: Fri, 25 Mar 2022 10:39:30 +0000 Subject: [PATCH] refactor(imports/points): rename point.callback to point.inside --- fxmanifest.lua | 2 +- imports/points/client.lua | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fxmanifest.lua b/fxmanifest.lua index 181457e..d1ba6fe 100644 --- a/fxmanifest.lua +++ b/fxmanifest.lua @@ -23,7 +23,7 @@ game 'gta5' --[[ Resource Information ]]-- name 'ox_lib' author 'Linden' -version '2.0.2' +version '2.1.0' repository 'https://github.com/overextended/ox_lib' description 'A library of shared functions to utilise in other resources.' diff --git a/imports/points/client.lua b/imports/points/client.lua index e9b9e83..4170e65 100644 --- a/imports/points/client.lua +++ b/imports/points/client.lua @@ -32,7 +32,7 @@ CreateThread(function() if distance <= point.distance then point.currentDistance = distance - if point.callback then + if point.inside then nearby[#nearby + 1] = point end @@ -53,7 +53,7 @@ CreateThread(function() while true do Wait(0) for i = 1, #nearby do - nearby[i]:callback() + nearby[i]:inside() end end end)