Adding keychains
Go the shared/sh_keychains_config.lua
CH_Keys.Keychains["keychain_tophat"] = {
Name = "Top Hat",
Price = 1000,
Model = "models/player/items/humans/top_hat.mdl",
Skin = 0,
Scale = 0.14,
Offset = {
Up = -1.4,
Right = 0,
Forward = 0.2,
},
}
This is what a keychain configuration looks like.
The keychain_tophat must be unique, so change that when you copy/paste this.
Set Name, Price, Model and Skin as you wish. Skin 0 is just default.
The Scale value will upscale or downscale the model. Usually you need to downscale it, so 1 is default and anything below 1 will make it smaller.
The Offset is usually necessary for gmod models to be adjusted, so it fits with the keychain.
I would suggest opening the addon in singleplayer, so you easily have lua auto refreshing.
Take out the key with the keychain and then live modify the offset and scale until it sits in the perfect position.