Garry's Mod

Garry's Mod

Not enough ratings
Force Convar
2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Fun, Roleplay
File Size
Posted
Updated
8.608 KB
6 Jan @ 10:12pm
14 Apr @ 12:22pm
8 Change Notes ( view )

Subscribe to download
Force Convar

Description
About Addon
This addon make available to force set convar's (which created with lua) value for all players, and make it uneditable.
Why you maybe need this? Just for some local roleplay projects which playing on fricking sandbox kekw.



Commands
  • fc_cl_getallcvars - Get all forced cvar values
  • fc_sv_addforcecvar CVAR VALUE - Force convar's value
  • fc_sv_removeforcecvar CVAR - Unforce convar's value
  • fc_sv_removeallcvars - Unforce all convars
  • fc_sv_getallpresets - Print all saved presets
  • fc_sv_savepreset PRESET_NAME - Create preset of all forced convars
  • fc_sv_loadpreset PRESET_NAME - Load saved preset with forced convars
  • fc_sv_removepreset PRESET_NAME - Remove saved preset of forced convars
  • (EXPERIMENTAL) fc_sv_debug_convertdbtocfg - Create LUA which will autoload forced convars (its not overwriting your forced convars, it will just force convars which in LUA)



Also addon includes database, which will save your forced convars after rejoining in game.
And for some reason this addon doesnt work with ARC9 convars (or not, im not sure), im sorry about it.



Originally posted by _edit:
i fr rewrited some addons to force set value, and now i making this addon?
Originally posted by Osaker:
Sata Andagi
Originally posted by Kiktus:
ыаоыоааоы
Originally posted by FKJ YF{EQ CSY IK.{PB:
tony1337_
Popular Discussions View All (2)
2
21 Jul @ 11:43pm
Ideas for addon
_edit
0
5 Feb @ 10:06am
Glitches / Bugs
_edit
14 Comments
screwdriver lobotomy 5 Feb @ 11:11am 
@_edit it workey
_edit  [author] 5 Feb @ 10:02am 
im updated the addon, restart game and wait for update, after that addon should work, im hope🙏🙏
screwdriver lobotomy 5 Feb @ 9:58am 
@_edit yippee :3
_edit  [author] 5 Feb @ 9:58am 
wait for update
_edit  [author] 5 Feb @ 9:57am 
nvm im finded the problem
screwdriver lobotomy 5 Feb @ 9:56am 
@_edit I was in singleplayer but I intended for it to be multiplayer use
_edit  [author] 5 Feb @ 9:56am 
singleplayer or multiplayer?
screwdriver lobotomy 5 Feb @ 9:55am 
@_edit I don't think I even added any yet
_edit  [author] 5 Feb @ 9:54am 
what a convar you tried to force?
screwdriver lobotomy 5 Feb @ 9:42am 
[Force Convar] lua/fcforcecvar/sh_fcdbsl.lua:20: attempt to call global 'FC_SAVEDATABASE' (a nil value)
1. fn - lua/fcforcecvar/sh_fcdbsl.lua:20
2. unknown - lua/ulib/shared/hook.lua:109