Defaults Menus Resource

Default configuration

This is the default configuration of the script. Take note that there is others configurations in the bridge files.

Config = {}

-- [string] → The locale you want to use. If the locale does not exist, the script will use the default locale.
Config.locale = GetConvar(GetCurrentResourceName() .. ":locale", "en")

-- [string] → The bridge you want to use. You can put a valid bridge or put "auto_detect" to let the script choose the best bridge for you.
Config.bridge = "auto_detect"

-- [table] → Enable or disable interactions
Config.interactions = {
	["personnal_id"] = true,
	["personnal_heal"] = true,
	["personnal_feed"] = true,
	["personnal_kill"] = true,
	["personnal_revive"] = true,
	["env_teleport"] = true,
	["env_spawn_vehicle"] = true,
	["vehicle_staff_delete"] = true,
	["vehicle_staff_repair"] = true,
	["vehicle_staff_clean"] = true,
	["vehicle_staff_drive"] = true,
	["vehicle_staff_freeze"] = true,
	["vehicle_staff_unstuck"] = true,
	["vehicle_staff_model"] = true,
	["vehicle_staff_duplicate"] = true,
	["vehicle_door_front_left"] = true,
	["vehicle_door_front_right"] = true,
	["vehicle_door_rear_left"] = true,
	["vehicle_door_rear_right"] = true,
	["vehicle_hood"] = true,
	["vehicle_trunk"] = true,
	-- Vehicle controls (accessible to all)
	["vehicle_engine"] = true,
	["vehicle_windows"] = true,
	["vehicle_my_window"] = true,
	["vehicle_driving_assist"] = true,
	["vehicle_change_seat"] = true,
	-- Player interactions
	["player_get_id"] = true,
	["player_staff_heal"] = true,
	["player_staff_feed"] = true,
	["player_staff_freeze"] = true,
	["player_staff_goto"] = true,
	["player_staff_bring"] = true,
	["player_staff_kill"] = true,
	["player_staff_revive"] = true,
}

-- [string] → The vehicle model to spawn with the staff spawn vehicle option
Config.spawnVehicleModel = "blista"

-- [table] → Permissions for each interaction
Config.permissions = {
	["personnal_id"] = nil,
	["staff_options"] = { "owner", "admin", "mod" },
	["personnal_heal"] = { "owner", "admin", "mod" },
	["personnal_feed"] = { "owner", "admin", "mod" },
	["personnal_kill"] = { "owner", "admin", "mod" },
	["personnal_revive"] = { "owner", "admin", "mod" },
	["env_teleport"] = { "owner", "admin", "mod" },
	["env_spawn_vehicle"] = { "owner", "admin", "mod" },
	["vehicle_staff_delete"] = { "owner", "admin", "mod" },
	["vehicle_staff_repair"] = { "owner", "admin", "mod" },
	["vehicle_staff_clean"] = { "owner", "admin", "mod" },
	["vehicle_staff_drive"] = { "owner", "admin", "mod" },
	["vehicle_staff_freeze"] = { "owner", "admin", "mod" },
	["vehicle_staff_unstuck"] = { "owner", "admin", "mod" },
	["vehicle_staff_model"] = { "owner", "admin", "mod" },
	["vehicle_staff_duplicate"] = { "owner", "admin", "mod" },
	["vehicle_door_front_left"] = nil,
	["vehicle_door_front_right"] = nil,
	["vehicle_door_rear_left"] = nil,
	["vehicle_door_rear_right"] = nil,
	["vehicle_hood"] = nil,
	["vehicle_trunk"] = nil,
	-- Vehicle controls (accessible to all)
	["vehicle_engine"] = nil,
	["vehicle_windows"] = nil,
	["vehicle_my_window"] = nil,
	["vehicle_driving_assist"] = nil,
	["vehicle_change_seat"] = nil,
	-- Player interactions
	["player_get_id"] = nil,
	["player_staff_heal"] = { "owner", "admin", "mod" },
	["player_staff_feed"] = { "owner", "admin", "mod" },
	["player_staff_freeze"] = { "owner", "admin", "mod" },
	["player_staff_goto"] = { "owner", "admin", "mod" },
	["player_staff_bring"] = { "owner", "admin", "mod" },
	["player_staff_kill"] = { "owner", "admin", "mod" },
	["player_staff_revive"] = { "owner", "admin", "mod" },
}

Last updated