From bc3fae20c26b01db83ed12fe1e48d066d9722a14 Mon Sep 17 00:00:00 2001 From: Linventif Date: Fri, 9 Aug 2024 18:56:22 +0000 Subject: [PATCH] fix: sam set rank --- lua/gmod_integration/server/sv_sync_roles.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lua/gmod_integration/server/sv_sync_roles.lua b/lua/gmod_integration/server/sv_sync_roles.lua index 2f5506c..3f57fff 100644 --- a/lua/gmod_integration/server/sv_sync_roles.lua +++ b/lua/gmod_integration/server/sv_sync_roles.lua @@ -32,10 +32,10 @@ function gmInte.wsPlayerUpdateGroup(data) // Evolve if evolve then evolve:RankPlayer(data.steamID64, data.group) end - // SAM + // sam - the gmodstore + if sam then sam.player.set_rank_id(data.steamID, data.group) end + // SAM - the other one if SAM then SAM:PlayerSetRank(data.steamID64, data.group) end - // sam (wtf another one?) - if sam then sam.player.setRank(data.steamID64, data.group) end // xAdmin if xAdmin then xAdmin.SetRank(data.steamID64, data.group) end // maestro