Incognito.settings = Incognito.settings or {}
Incognito.settings['settings_menu'] = '!incognito'
Incognito.settings['incognito_list'] = '!incognito_list'
Incognito.settings['hide_cmd'] = '!hide' --command to enable incognito
Incognito.settings['deactivate_cmd'] = '!unhide' --command to disable incognito
Incognito.settings['enable_logs'] = true --should logs be used?
Incognito.settings['disable_console_logs'] = true --should the console logs be disabled? (this only works if enable_logs is equal to true)
--[[
This setting allows you to copy all the data of a player by his steam link
NOTE: if this is true you have to specify a steamapi key in the sv_incognito_cfg.lua
]]
Incognito.settings['use_autocomplete'] = false
Incognito.settings['perms'] = {
["Player list access"] = {
['superadmin'] = true,
['founder'] = true
},
["Incognito access"] = {
['superadmin'] = true,
['founder'] = true
},
['Incognito auto complete access'] = {
['superadmin'] = true,
['founder'] = true
}
}
--[[
These hooks won't execute in order to hide player's identity (true means the hook won't execute)
Second argument is where the hook should be defined {
CLIENT: 1
SERVER: 2
}
NOTE: Make sure the first argument of the hook is a player, otherwise stuff will BREAK!
]]
Incognito.settings['affected_hooks'] = {
['identity_change'] = {},
['hidden_mode'] = {
['PlayerSay'] = {
true, --to disable any of these just set this to false
2,
function(ply, text)
if string.StartsWith(text, "!") or string.StartsWith(text, "/") then return false end
end,
"" --4th argument is the value to return so the hook wouldn't execute (default: false)
},
['PostPlayerDraw'] = {true, 1},
['CanPlayerSuicide'] = {true, 2},
['CanPlayerEnterVehicle'] = {true, 2},
['PlayerCanPickupWeapon'] = {true, 2},
['PlayerCanPickupItem'] = {true, 2},
['PlayerCanJoinTeam'] = {true, 2},
['PlayerSpawnProp'] = {true, 2},
['PhysgunPickup'] =
{
true,
2,
function(ply, ent)
--[[
This function allows to set a condition when the hook shouldn't execute,
otherwise it won't execute at all when the player is in hidden mode
]]
return IsValid(ent) and !ent:IsPlayer()
end
},
['CanTool'] = {false, 2},
}
}
Incognito.settings['hidden_mode'] = {
['disable_flashlight'] = true,
['automatic_cloak'] = true, --this cloak may conflict with your admin mod cloak
['disable_damage'] = true
}
Incognito.settings['identity_change_mode'] = {
['override_server_variables'] = true, --required for admin mods which create a command msg serverside
['ping_update_delta'] = 3, --maximum ping change during an update
['ping_update_frequency'] = 3, --update frequency for new ping generation
['ping_update_frequency_randomization'] = true, --makes certain updates not succeed, which adds more randomization
}
Incognito.settings['extra_settings'] = {
['incognito_list'] = true, --should incognito user list be added?
['incognito_list_menu'] = true, --should incognito user list be added to the main settings menu?
['incognito_indicator'] = true, --should there be an indicator on the screen when incognito is enabled?
['display_real_username'] = true, --should the real username display in the incognito user list too?
['incognito_position'] = "Right-Top", --available options: Center-Top, Center-Bottom, Left-Top, Left-Bottom, Right-Top, Right-Bottom
--[[
Prevents you from executing any commands in Identity mode to which the selected usergroup doesn't have access (client and server side)
Note: when disabled, this will display your actual usergroup for you, others will see the one you have selected
]]
['prevent_access'] = false,
['extra_compatibility'] = true, --This solves certain incompatiblities (also allows to find the player by his real steamid/steamid64)
['activate_bypass_addon_list'] = false,
--[[
Specify the names of the folders in this format which won't be affected by any overrides of Incognito
(this will solve any problems you may face, but if you bump in to any, please open a ticket anyway)
]]
['bypass_addon_list'] = {
['my_beautiful_addon'] = false,
},
--[[
When this is set to true you will have to add to the override_addon_list addons which are supposed to be overriden when reconnecting
(this is just for the state of connecting/joining, done to not break the gamemode on serverside)
Note: doesn't work after restart
]]
['stay_hidden_after_reconnect'] = true,
['hide_connect_message'] = true,
['override_addon_list'] = {
['chat'] = true
},
--[[
This is needed for all the chats that create the message fully on the serverside
]]
['force_override_addons'] = true,
['force_override_addon_list'] = {
['chat'] = true
},
--[[
This is done to prevent incompatibilities, overriding the steamid64 with certain addons causes incompatibilities when stay_hidden_after_reconnect is enabled
if in your case it doesn't then feel free to enable it
]]
['overrided_servervars'] = {
['steamid'] = true,
['steamid64'] = false,
['usergroup'] = true,
['steamname'] = true,
['username'] = true,
}
}
Incognito.settings['language'] = 'en'