• [HELP] new playermodel on spawn
    6 replies, posted
Again i come here to ask for your help, this time i bring you a random playermodel chooser that doesn't work any idea what i am doing wrong ? [CODE] local playermodels = { "models/player/Group01/Male_01.mdl", "models/player/Group01/Male_02.mdl", "models/player/Group01/Male_03.mdl", "models/player/Group01/Male_04.mdl", "models/player/Group01/Male_05.mdl", "models/player/Group01/Male_06.mdl", "models/player/Group01/Male_07.mdl", "models/player/Group01/Male_08.mdl", "models/player/Group01/Male_09.mdl" } hook.Add("PlayerSpawn", "chooseplayermodel", function(ply) local models = table.Random(playermodels) ply:SetModel(models) end) [/CODE]
What playermodel is displayed by default?
Try pre-caching the models if you haven't already.
@code_gs: the one players can choose in the playermodel menu @ShadowRanger: how do i do that ?
You must set models in PlayerSetModel hook. Make sure to return true to prevent default action.
@Robotboy: thanks a lot, praise the lord that you found my topic !!
new topic opened
Sorry, you need to Log In to post a reply to this thread.