-
Notifications
You must be signed in to change notification settings - Fork 3
Models
This page will help you to setup custom models on your server
Old explaination here
To start, we will need models.
You can found some on the workshop
You can also download them from online website and then install them on your server (to install them, google it)
Once installed, go in sandbox, in the player model selection menu, place your mouse over the player model you'd like to use in Prop Hunt, a yellow box with the name of the model's should appear. Take note of it, we'll need it later.
Now we will add a model and configure it.
To do so, go to garrysmod/lua/ on your server, create a folder called ultimateph and inside this new folder, create another folder called models.
You should end up with something like
garrysmod/lua/ultimateph/models/
Inside the models folder, create a file called wathever you want but which ends with .lua (for example some_models.lua).
Open that lua file with you favorite code editor (like VS Code, Notepad++, ...)
Copy and paste the code below in the lua file
addModel("name", "sex", "team")
This code will add only 1 model, so add as many as you want models
In clear, each addModel adds one model to the model list which will be randomly choose at the beginning of a round
Then you will need to replace these values:
-
name: the name of the model (the name you wrote down at the beginning) -
sex: gender for taunts (male or female); This will be used to determine if the player with this model will have male or female sounded taunts -
team: the team the model will be used in (hunters, props or both)
Doing all this will result as only adding models to the default model list.
If you want to remove all default player models, on the first line (before the first addModel), you can put the code below
removeBasicDefaultModels()
Or you can remove them one by one using
removeModel("name")
