Update Net.lua

#NET Fix for GetPlayerIDByName()
This commit is contained in:
Thomas
2025-11-24 09:24:37 +01:00
committed by GitHub
parent 88396b5a5e
commit dacf5125bf
+1 -1
View File
@@ -485,7 +485,7 @@ function NET:GetPlayerIDByName(Name)
if not Name then return nil end
local playerList = net.get_player_list()
for i=1,#playerList do
local playerName = net.get_name(i)
local playerName = net.get_name(playerList[i])
if playerName == Name then
return playerList[i]
end