mirror of
https://github.com/gmod-integration/lua.git
synced 2025-03-15 22:27:34 +00:00
add: sync name
This commit is contained in:
parent
375a96a888
commit
769e4f0eef
|
@ -1,7 +1,7 @@
|
|||
function gmInte.wsSyncName(data)
|
||||
local ply = player.GetBySteamID(data.player.steamID64)
|
||||
local ply = player.GetBySteamID(data.steamID64)
|
||||
if !IsValid(ply) then return end
|
||||
ply:SetName(data.newName)
|
||||
ply:SetName(data.name)
|
||||
end
|
||||
|
||||
function gmInte.playerChangeName(ply, oldName, newName)
|
||||
|
|
Loading…
Reference in New Issue
Block a user