Having some trouble adding player models to pointshop i add the model to my addons then add a workshop download resource.AddWorkshop ( "id" ) etc then i go to the pointshop playermodels make a modelname.lua inside i have this:
ITEM.Name = 'Arnold Schwarzenegger'
ITEM.Price = 1
ITEM.Model = 'models/player/arnold_schwarzenegger.mdl'
function ITEM:OnEquip(ply, modifications)
if not ply._OldModel then
ply._OldModel = ply:GetModel()
end
timer.Simple(1, function() ply:SetModel(self.Model) end)
end
function ITEM:OnHolster(ply)
if ply._OldModel then
ply:SetModel(ply._OldModel)
end
but still when i press f4 go on playermodels tab nothing but the default kleiner shows then gamemode is prophunt
Did you restart your server?
That code is fine for adding a new player model
this is what i got
[url]http://postimg.org/image/5cn1wkhth[/url] [url]http://postimg.org/image/4bmt7g0tx[/url]
[url]http://postimg.org/image/rr4qcskl1[/url]
i don't know what i did wrong i know the player model works because i have a custom ulx command where i can change my model tested it every one on the server could see it working so i know the model is working
The only thing I can think of is maybe they Probation Admin rank has to be exactly the same as you put it in the ULX (capital letters included). Other than that, I'm clueless.
1) Is the playermodel even showing up in the pointshop? If it does, it shouldn't show as kleiner, but an error ( Ofc. only if it's missing model )
2) Are you sure, that you've typed the player model path correctly?
3) Try changing the price to something above 0
When you give an invalid model for player_manager.TranslatePlayerModel it will automatically use the kleiner player-model, like The Beta has mentioned.
Sorry, you need to Log In to post a reply to this thread.