ð§Config
General Information
To understand the structure
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.
Additional Settings
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.
Keys
All available keys can be found here.
Props Models
All prop models can be found here.
Ped Models All ped models can be found here.
Blip Settings All blip settings can be found here.
Config.Settings
All basic settings.
language
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:
openPhoneItem
The item that registers are usable and opens the phone upon use.
Example:
artificialLoadTime
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:
logsMasterSwitch
Easily enable or disable all logging with a master switch.
Example:
removeTransactionFromHistory
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:
allowLeaveUponJoin
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:
leaveCommand
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:
minStrikeCharLength
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:
maxStrikeCharLength
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:
stashes
Various settings to configure the stash a gang can place.
Example:
stashes.enabled
Enable or disable the ability for gangs to place and use stashes.
Example:
stashes.stashId
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:
stashes.label
Display label for the stash. Replaces
%s
with the gang name. Does not need to be unique.
Example:
stashes.propModel
The model that the stash will use to interact with if you are using a targeting system.
Example:
stashes.weight
The weight for the stash.
Example:
stashes.slots
The slots for the stash.
Example:
stashes.placement
Various settings for the placement of stashes.
Example:
stashes.placement.insideTurf
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:
vehicleSpawner
Various settings for the vehicle spawner. Example:
vehicleSpawner.enabled
Set to
true
to enable the ability to spawn vehicles, set tofalse
to disable it.
Example:
vehicleSpawner.refreshInterval
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:
vehicleSpawner.maxVehicles
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:
vehicleSpawner.propModel
Prop model for the spawner you interact with if you are using a target menu.
Example:
vehicleSpawner.bagIdentifier
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:
vehicleSpawner.placement
Various settings for the placement of vehicle spawners.
Example:
vehicleSpawner.placement.insideTurf
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:
hud
Various settings to configure the hud. Example:
hud.enabled
Set to
true
to enable the hud orfalse
to disable it.
Example:
hud.position
This value allows you to configure where you see the hud to fit best. Available:
top-left
top-right
bottom-left
bottom-right
Example:
hud.showMoney
Set to
true
to display your gang's money along with your gang name, orfalse
to disable it.Example:
gangInvitesCommand
Command to open your gang invites. All your invites can be accepted or declined in here.
Example:
gangCreation
Various settings for gang creation. Example:
gangCreation.permisison
The permission required to whitelist another player for creation a gang.
Example:
gangCreation.defaultImg
The default image for a gang if they don't choose an image.
Example:
gangCreation.defaultRanks
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:
gangCreation.defaultRanks[x].name
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:
gangCreation.defaultRanks[x].label
The label for your rank. This is what will be displayed throughout the script.
Example:
turfCreation
Various settings for the turf creation.
Example:
turfCreation.permission
The permission required to create gang turfs.
Example:
adminMenu
Various settings for the admin menu. Example:
adminMenu.permission
Permission required to open and use the admin menu.
Example:
adminMenu.command
The command to open the admin menu.
Example:
turfWar
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:
turfWar.enabled
Set to
true
to enable turf wars, set tofalse
to disable them.
Example:
turfWar.attackCooldown
In minutes, how long between each time your gang can start a turf war against another gang.
Example:
turfWar.defenceCooldown
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:
turfWar.minimumAttackers
The minimum amount of members online in the attacking gang to start a turf war against another gang.
Example:
turfWar.minimumDefenders
The minimum amount of members online in the defending gang for the attackers to start a turf war.
Example:
turfWar.preparationTime
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:
turfWar.attackReward
Amount of money your gang gets if you successfully attacked and won a turf war. Can be disabled by setting it to
0
.
Example:
turfWar.defenceReward
Amount of money your gang gets if you successfully defend a turf war. Can be disabled by setting it to
0
.
Example:
turfWar.timer
Various settings for the turf war timer.
Example:
turfWar.timer.use
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:
turfWar.timer.static
If you are using a static timer, set in seconds how long you want the turf war to last. Example:
turfWar.timer.advanced
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:
turfWar.drawParticipant
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.
gangWar
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:
gangWar.enabled
Set to
true
to enable gang wars, set tofalse
to disable them.Example:
gangWar.deathGracePeriod
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:
gangWar.pointOnKill
The amount of points you get per kill.
Example:
gangWar.pointOnLeaderKill
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:
gangWar.maxMoneyWager
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:
gangWar.moneyWagerStepperDivider
Each tick on the slider is the gangWar.maxMoneyWager divided by this value.
Example:
gangWar.maxTimeOptions
A list of options to select how long the war will go on for. Example:
gangWar.maxOptions[x].value
The actual value for the length of the gang war. This value is calculated in hours.
Example:
gangWar.maxOptions[x].label
The display label for the value. Example:
gangWar.maxScoreOptions
A list of options to select how much score is required to end the war. Example:
gangWar.maxScoreOptions[x].value
The amount of kills required to end the war. Example:
gangWar.maxScoreOptions[x].label
The display label for the value. Example:
gangWar.drawParticipant
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.
settings
Various settings for the personal settings.
Example:
gangWar.kvpIdentifier
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:
gangWar.optionKeys
Do not touch.
gangWar.options
A list of options to toggle in the phone. Example:
gangWar.options[x].name
Do not touch.
gangWar.options[x].enabled
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:
gangWar.options[x].default
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:
gangWar.options[x].options
Do not touch.
Last updated