Skip to content

Instantly share code, notes, and snippets.

@ValentinFunk
Created December 3, 2017 15:14
Show Gist options
  • Save ValentinFunk/3971220047f0760ae7742e188f029551 to your computer and use it in GitHub Desktop.
Save ValentinFunk/3971220047f0760ae7742e188f029551 to your computer and use it in GitHub Desktop.
Playermodel Lua. Put this into garrysmod/lua/autorun/sh_playermodel_list.lua
AddCSLuaFile()
--[[
Follow this template to add playermodels to the picker and make the hands work.
You need to make sure that the playermodels are downloaded on the client as well (i.e. FastDL or Workshop Download).
This is the template:
player_manager.AddValidModel( "<name>", "<player model path>" )
player_manager.AddValidHands( "<name>", "models/weapons/c_arms_cstrike.mdl", 0, "10000000" )
]]--
player_manager.AddValidModel( "hostage01", "models/player/hostage/hostage_01.mdl" )
player_manager.AddValidHands( "hostage01", "models/weapons/c_arms_cstrike.mdl", 0, "10000000" )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment