Skip to content

Commit

Permalink
0.00 ms Optimization + Server-Side Player Tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
lama-development authored Aug 23, 2022
1 parent 3a0d84f commit fda3b1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ local playersOnJob = {}
function isClientTooFar(location)
local distance = #(GetEntityCoords(GetPlayerPed(source)) - vector3(location.x, location.y, location.z))
-- checking from a distance of 15 because it might not be 100% correct
if distance > 15 then return true
if distance > 25 then return true
else return false
end
end
Expand Down

0 comments on commit fda3b1e

Please sign in to comment.