This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
-- @author Alf21 | |
-- @author Mineotopia | |
local iconTableNew = { | |
PIRATE_CAPTAIN = "vgui/ttt/dynamic/roles/icon_pirate2", | |
INFECTED = "vgui/ttt/dynamic/roles/icon_infected2" | |
} | |
-- if putting a new image to that not included in iconTableNew, you need to add this to FastDL (resource.AddFile(...)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Put this into '[SERVER]/garrysmod/lua/autorun/' | |
-- to toggle the survivalist role, type in chat "!tot_toggle_surv" as admin or in console "tot_toggle_sur 0" | |
-- add lua file | |
AddCSLuaFile() | |
-- add own CONVAR to toggle this survivalist de- / activation | |
CreateConVar("tot_toggle_sur", 1, {FCVAR_ARCHIVE, FCVAR_NOTIFY}, "Toggle survivalist role in Town of Terror addon") | |
-- add a command to toggle ingame |