• Overwriting Playermodels Darkrp
    2 replies, posted
Hello, I am creating a SENT that is used to change your player model. Everything has been going fine until it comes to setting the playermodel. I've tried everything I can think of. I am calling [lua]ply:SetModel("models/player/mossman.mdl")[/lua] and receive no errors. All of my Debug Prints go through. I was wondering if anyone has a way to override a job's model in DarkRP on demand, without having to go through the f4 menu. If you need anymore info, feel free to ask. Thanks in advance. // EDIT Found out that the test environment did not like changing models. Tried another environment and it worked.
You can do it like you tried. Are you sure the target playerentity is ply?
Yeah, I tried hooking it into [lua]ENT:Use(ply, caller )[/lua] as a test, which should do it, unless I am being an idiot and should call it somewhere else. My ideal goal is to use it after a net message has been returned where the player has been marked with [lua]net.WriteEntity()[/lua], sadly that method did not work at all, even though the player info has been sent.
Sorry, you need to Log In to post a reply to this thread.