Playermodels

OK, so i have a gmod sandbox server and i wanted to know if there’s ANY way to make people that join my server have a default skin that i choose?

Entity:SetModel(modelPath)

where would i add that? im not good at lua


ply:SetModel( "models/something.mdl" )

It’s serverside

sorry im confused , which code wpuld it be, and where would it go like gmod/lua/cl_init?

Make a new file in lua/autorun/server. Name it whatever you want. Make a PlayerSpawn hook and put ply: SetModel(modelpathhere) in it. Very simple

so i would have this code “ply: SetModel(blahblah.mdl)” put it in .lua file and just put it in lua/autorun/server?
im sorry im so bad with lua

[editline]10th December 2013[/editline]

PLAYER:Spawn(ply: SetModel(modelnamehere))

would this be the code?

[editline]10th December 2013[/editline]

HELP PLEASE

[lua]function GM:PlayerSpawn( ply )
ply:SetModel( “models/modelhere.mdl” )
end[/lua]

Here, please stop spamming me now.