Command or script that changes playermodel?

Like, say you wanted to change your playermodel to a melon. You could use a console command (setplayermodel or something along those lines) to change your playermodel to said melon. Is this possible, or has it already been made and I’m just an idiot?

http://www.garrysmod.org/img/?t=dll&id=30525

The melon was hypothetical, I meant any prop.

[lua]
concommand.Add(“SetPropModel”, function(ply, cmd, args)
if args[1] then
ply:SetModel(args[1])
end
end)
[/lua]

Goes in “garrysmod/lua/autorun/server”
example: “SetPropModel models/player/gman_high.mdl”

Note, This would problably not work very well if its a prop.

If you’re trying to do this in single player, you could just type lua_run player.GetAll()[1]:SetModel( “ModelPath” ) in the console.

Yeah, I’m doing it in singleplayer. Thank you for your help.

No problem. Happy to be of use. If you need more help, you can add me.