Models Menu

Hey,

When i press C i can change my Model, how can i disable that for example that you only can buy stuff from pointshop?

Thanks

If you are wanting to make it so players can not have custom models unless purchased from your pointshop, there is a couple things you will want to do

  1. Set the players model from the gamemode/script from spawn. The following code is used serverside.

function SetPlayerModel(ply)
ply:SetModel("MODEL_PATH")
end
hook.Add("PlayerSpawn", "SetModelOnSpawn", SetPlayerModel)


  1. Now to disabled the context menu, you will want a piece of code something like


function GM:ContextMenuOpen(ply)
	return false
end


If you have anymore questions feel free to ask

But they won’t be able to use the 2nd click menu and the tool stuff?

If you want it is possible to disable pieces of the context menu (or atleast kill the player if they try)