forked from Simnation/Main
Update client.lua
This commit is contained in:
parent
b4d6a488f6
commit
496f572040
1 changed files with 2 additions and 0 deletions
|
@ -438,6 +438,7 @@ function GetNearbyPlayersWithNames(maxDistance)
|
||||||
if id ~= PlayerId() then
|
if id ~= PlayerId() then
|
||||||
local targetPed = GetPlayerPed(id)
|
local targetPed = GetPlayerPed(id)
|
||||||
local targetCoords = GetEntityCoords(targetPed)
|
local targetCoords = GetEntityCoords(targetPed)
|
||||||
|
-- Verwende #(vector1 - vector2) für die Distanzberechnung
|
||||||
local distance = #(playerCoords - targetCoords)
|
local distance = #(playerCoords - targetCoords)
|
||||||
|
|
||||||
if distance <= maxDistance then
|
if distance <= maxDistance then
|
||||||
|
@ -460,6 +461,7 @@ function GetNearbyPlayersWithNames(maxDistance)
|
||||||
return players
|
return players
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
function GenerateKeyInventoryNativeUI()
|
function GenerateKeyInventoryNativeUI()
|
||||||
keyInvMenuNativeUI:Clear()
|
keyInvMenuNativeUI:Clear()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue