selfSetModel?

How would i make it so when i hit a derma button it changes the model of my player to a different model?

[lua]function panel()

local window = vgui.Create( “DFrame” )
window:SetSize( 200,70 )
window:Center()
window:SetTitle( “DButton Test” )
window:MakePopup()

local button = vgui.Create( “DButton”, window )
button:SetSize( 100, 30 )
button:SetPos( 50, 30 )
button:SetText( “Test Button” )
button.DoClick = function( button )
LocalPlayer():SetModel(“Model/player/model.mdl”)
end
hook.Add(“HUDPaint”,“Panel”,panel)[/lua]

Is my first help answer :B
I hope which is work for you
Sorry for my bad english

That would only work on the client. Make a concommand on the server to change the user’s model, then activate it via the button.

HEY! Its the biggest fail darkrp minge! How ya doin’?