• Is there a method for changing player model in DarkRP?
    1 replies, posted
Hey! Is there a method in DarkRP that allows changing models? I need to change the players model in a SWEP and i have tried this under shared.lua: [CODE] if SERVER then --I know thats not likely to work as SetModel is client side self.Owner.SetModel("dir/to/model.mdl") end if CLIENT then self.Owner.SetModel("dir/to/model.mdl") end [/CODE] Which doesnt work because I dont think SetModel works under SERVER. Does anyone know what I should do to change the model? Thanks!
Wiki says shared. So it should work for both. [URL="http://wiki.garrysmod.com/page/Entity/SetModel"]http://wiki.garrysmod.com/page/Entity/SetModel[/URL] Serverside SetModel sets for everyone but clientside setmodel ist just for the client. I even believe you don't need this on clientside.
Sorry, you need to Log In to post a reply to this thread.