Garry's Mod

Garry's Mod

Player customizer (non-RP + DarkRP)
 This topic has been pinned, so it's probably important
Cédric GÉRILLE [GiletJaune]  [developer] 8 Oct, 2016 @ 7:53pm
Example of different configurations depending on the gamemode
-- This file should be placed as lua/autorun/server/pcs_custom.lua -- Make sure to customize the conditions and the affected values. hook.Add( "PostGamemodeLoaded", "pcs_custom", function() local gamemode = engine.ActiveGamemode() if gamemode == "terrortown" then RunConsoleCommand( "pcs_noshowonspawn", "0" ) RunConsoleCommand( "pcs_noshowonteam", "1" ) elseif gamemode == "sandbox" then RunConsoleCommand( "pcs_noshowonspawn", "1" ) RunConsoleCommand( "pcs_noshowonteam", "1" ) else RunConsoleCommand( "pcs_noshowonspawn", "0" ) RunConsoleCommand( "pcs_noshowonteam", "0" ) end end )
< >
Showing 1-2 of 2 comments
Puma 10 Oct, 2016 @ 7:28am 
Thank you very much! :steamhappy:
Cédric GÉRILLE [GiletJaune]  [developer] 10 Oct, 2016 @ 8:14am 
No problem :extralife:
< >
Showing 1-2 of 2 comments
Per page: 1530 50