1
0
Fork 0
forked from Simnation/Main

Update client.lua

This commit is contained in:
Nordi98 2025-08-06 14:32:05 +02:00
parent b4d6a488f6
commit 496f572040

View file

@ -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()