Config
Last updated
Was this helpful?
Last updated
Was this helpful?
Because we have extensive configuration files, nested tables is an inevitability. To keep track of which values are for which table we use the tablename.value. This can also stack, for example location.blip.enabled etc.
If there is a feature within the script that you can't find in the script's config, there is a chance that the configuration lies within Zyke Lib. This is to ensure that you never have to configure your targeting menu, framework etc over and over again.
All available keys can be found .
All prop models can be found .
Ped Models All ped models can be found .
Blip Settings All blip settings can be found .
All basic settings.
Set this to a language file available. By default there is "en". You can create your own translations in the locales folder and set your language here.
Example:
The item that registers are usable and opens the phone upon use.
Example:
Added loading time to ensure predictable results and no flashing, a minimum of 100ms is mandatory, 300ms for fast, 500ms for medium and 1000ms for slow
Example:
Easily enable or disable all logging with a master switch.
Example:
In days, how long before a transaction will be removed from the history. This system is in place to purge old and unneeded data. This action will take place on script start. Could be set to a really high number to save really old transactions, but is recommended to keep 2 weeks at most, as anything else is usually not necessary.
Example:
Setting this to
true
allows you to join another gang and instantly leave your old. Set this tofalse
to force your gang leader to kick you first. This setting aims to create interesting scenarios where you have to leave your gang behind properly, instead of just randomly vanishing.Example:
Set this to
nil
or""
to remove the ability to leave your gang through a command. If you leave it as a value, any member can type this command and leave the gang.
Example:
Minimum amount of characters required in a strike reason. This is to encourage admins to leave a proper description of why the gang was given a strike. Can be set to 0 to allow empty descriptions.
Example:
Maximum amount of characters a strike description can have. Recommended to keep resonably high to allow for extensive descriptions, so that the evidence can be used later if needed. But it is not recommended to keep too high, as it is information that needs to be fetched and takes more resources if unnecessarily long.
Example:
Various settings to configure the stash a gang can place.
Example:
Enable or disable the ability for gangs to place and use stashes.
Example:
Has to be a unique id, the
%s
will be replaced with your gang id. You can change this freely but if you do, items in the old stashes will disappear as they get a new id. Just remember to always include the%s
so that the stash id remains unique.
Example:
Display label for the stash. Replaces
%s
with the gang name. Does not need to be unique.
Example:
The model that the stash will use to interact with if you are using a targeting system.
Example:
The weight for the stash.
Example:
The slots for the stash.
Example:
Various settings for the placement of stashes.
Example:
If set to
true
, this will require the gang leader to place their stash inside of their turf. This can also be set tofalse
to allow stashes to be placed anywhere on the map.
Example:
Various settings for the vehicle spawner. Example:
Set to
true
to enable the ability to spawn vehicles, set tofalse
to disable it.
Example:
In seconds, how often the vehicle spawners can refresh if you open them, should leave at default. This is for optimization purposes. Can bet set lower for more fluid updating, but takes more resources and should not be required.
Example:
Max vehicle a gang can have out at the same time. The vehicles are spawned and taken care of server-sided, which means that they are persistent and don't disappear randomly.
Example:
Prop model for the spawner you interact with if you are using a target menu.
Example:
All vehicles have a statebag to track which vehicle is owned by the gang in case of any mishaps. This setting should not be touched.
%s
gets replaced with the gang's id.
Example:
Various settings for the placement of vehicle spawners.
Example:
If set to
true
, this will require the gang leader to place their vehicle spawner inside of their turf. This can also be set tofalse
to allow vehicle spawners to be placed anywhere on the map.Example:
Various settings to configure the hud. Example:
Set to
true
to enable the hud orfalse
to disable it.
Example:
This value allows you to configure where you see the hud to fit best. Available:
top-left
top-right
bottom-left
bottom-right
Example:
Set to
true
to display your gang's money along with your gang name, orfalse
to disable it.Example:
Command to open your gang invites. All your invites can be accepted or declined in here.
Example:
Various settings for gang creation. Example:
The permission required to whitelist another player for creation a gang.
Example:
The default image for a gang if they don't choose an image.
Example:
A list of default ranks. Note that you need to have at least one rank in here for the script to work, as each member is assigned the rank at the bottom.
Example:
The name for your rank. This has to be unique. Recommended to follow the format above and name it the same as your label but with non-capital letters.
Example:
The label for your rank. This is what will be displayed throughout the script.
Example:
Various settings for the turf creation.
Example:
The permission required to create gang turfs.
Example:
Various settings for the admin menu. Example:
Permission required to open and use the admin menu.
Example:
The command to open the admin menu.
Example:
Various settings for the turf war. All cooldowns will start at the time the attacks start and have the preparation time added to it. Example:
Set to
true
to enable turf wars, set tofalse
to disable them.
Example:
In minutes, how long between each time your gang can start a turf war against another gang.
Example:
In minutes, how long between each time your gang can defend a turf war. This setting is recommended to be set rather high, to prevent you from constantly being attacked.
Example:
The minimum amount of members online in the attacking gang to start a turf war against another gang.
Example:
The minimum amount of members online in the defending gang for the attackers to start a turf war.
Example:
In seconds, how long you have to prepare for the turf war after you announced the attack. This is recommended to be set rather high, to allow for the gangs to get back to their turf before the war starts, otherwise they will instantly fail it.
Example:
Amount of money your gang gets if you successfully attacked and won a turf war. Can be disabled by setting it to
0
.
Example:
Amount of money your gang gets if you successfully defend a turf war. Can be disabled by setting it to
0
.
Example:
Various settings for the turf war timer.
Example:
There are two ways the timer can act that you can choose from.
"static"
Static (
"static"
) The timer has a static timer and will always remain the same. Advanced ("advanced"
) The timer changes based on war participant count.Example:
If you are using a static timer, set in seconds how long you want the turf war to last. Example:
If you are using an advanced timer, set in seconds how long you want the turf war to last. Using an advanced timer will take the total participant count and multiply it by your timer value. Example is 3 attackers and 4 defenders, that will result in 7 * 60 = 420s Example:
This is the function that is triggered to draw participants. It can be changed to whatever you want, but is recommended to keep default unless you know what you are doing.
Various settings for the gang war. When selecting a way for the war to end, you are required to use at least one value, but you can also use both. This means that the time can be cut short if you hit the score, or vice versa. Or you can have it limited to one only. Example:
Set to
true
to enable gang wars, set tofalse
to disable them.Example:
In seconds, when you die there is a grace period where if you get marked as alive and then dead again, it will not count. This is to counter the sideeffects of using a custom death script that might act this way. Adjust if needed.
Example:
The amount of points you get per kill.
Example:
The amount of points you get per leader kill. Can set it to
0
to count as deaths the same, set it to1
and above to give additional points for killing the leader. Note that this has nothing to do with any ranks, and only has effect on the current leader of the gang, which is the person that can invite, modify ranks, disband the gang etc.Example:
Max amount of money that can be wagered. The choice is done through a slider, so it is recommended to keep this realistic to not make the slider jump around too much.
Example:
Each tick on the slider is the gangWar.maxMoneyWager divided by this value.
Example:
A list of options to select how long the war will go on for. Example:
The actual value for the length of the gang war. This value is calculated in hours.
Example:
The display label for the value. Example:
A list of options to select how much score is required to end the war. Example:
The amount of kills required to end the war. Example:
The display label for the value. Example:
This is the function that is triggered to draw participants. It can be changed to whatever you want, but is recommended to keep default unless you know what you are doing.
Various settings for the personal settings.
Example:
The identifier the settings are saved at. This has to be unique from other kvp identifiers on your server. Note that if you change this, everyone's settings will reset. It is recommended to not touch unless you know what you are doing.
Example:
Do not touch.
A list of options to toggle in the phone. Example:
Do not touch.
If the option has this key, you can enable it by setting it to
true
and disable it by setting it tofalse
. Note that you can not add this key yourself. Example:
The default value for the setting each time a person loads the settings for the first time. Recommended to keep default, but can be changed based on your server's preference. The value is the index for the setting in gangWar.options[x].options Example:
Do not touch.