• About playermodels when you connect
    2 replies, posted
Im looking for something that'll let me choose which playermodel/s is set to default user group(ULX) when they spawn/connect to the server, and at the same time disable the ability to choose another one from C Menu, i've looked around for a while trying to find anything about it but cant really find anything helpfull I want more than 1playmodel to be picked from also if possible Soo if theres a addon for that that'll be great or just a autoexec that can be added that would work aswell Thanks in advance.
Bump
Managed to fix it ourselfs, if anyone else is wondering how you would do this we did it like this. Inside of a gamemode, we've set this function inside init.lua function GM:PlayerSpawn(ply) local playermodels = {"models/csgoanarchist1pm.mdl", "models/csgoanarchist2pm.mdl"} self.BaseClass:PlayerSpawn(ply) if ply:IsAdmin() then return false else ply:SetModel(table.Random(playermodels)) end end That'll randomize between the two models every time a normal user spawns/connects And for the C menu its not needed as this sets the model anyways
Sorry, you need to Log In to post a reply to this thread.