Page cover

βš™οΈConfiguration

Discover how to config your script.

chevron-rightFiles that are configurablehashtag

zr-identity/zr-config/zr-config.lua

zr-identity/zr-config/zr-build-c.lua

zr-identity/zr-config/zr-build-s.lua

circle-info

To ensure you have everything you need, we are constantly updating our config files.

-- Change the framework to 'QB' or 'ESX':
zr_config.framework = 'QB'

-- If you have custom frameworks names, you can change them here:
zr_config.QB = 'qb-core'
zr_config.ESX = 'es_extended'

-- Here you can change the interior and camera coords:
zr_config.Interior = vector3(-169.286, 486.4938, 137.4436)
zr_config.PlaCoords = vector4(-176.0504, 491.7193, 133.8438, 190.9712)
zr_config.CamCoords = vector4(-176.5, 498.7330, 134.8, 12)
zr_config.EndCoords = vector4(-176.1338, 500.2804, 134.6434, 180)

-- Make it false to disable the interior loading if you have a custom map.
zr_config.ToggleInterior = true


-- You can change default spawn coords from here:
zr_config.DefaultSpawn = vector3(-1035.71, -2731.87, 12.86)

-- Here you can change the default models:
zr_config.DefaultModels = {"mp_m_freemode_01","mp_f_freemode_01"}

-- If you have bought our zr-notify script, set this to true, if not keep it false:
zr_config.zr_notify = true

zr_config.spawn = 'qb-spawn'  -- or 'ps-housing' ('zr-locations' is being used by multicharacter not identity.)

-- Only for QBcore: Disable/Enable Starting Apartment.
-- Make sure to do the same in the qb-apartments -> config.lua
-- if 'true' make sure to keep 'qb-spawn' installed in your resources.
zr_config.StartingAppartment = true 

-- Conditions for Creating character:
zr_config.maxlength = 18; -- Maximum length for names
zr_config.minlength = 2; -- Minimum Lenght for names
zr_config.zr_minYear = 1900; -- Minimum Year
zr_config.zr_maxYear = 2005; -- Maximum Year
zr_config.zr_Format = "d/m/Y"; -- Date format

-- Change it with your discord link
zr_config.discord = 'https://discord.gg/FwedjEV6kY'

-- Here you can translate the notifications messages to the language you prefer
zr_trans.notify_rls = 'Read & accept the rules first!'
zr_trans.notify_fld = 'All field are required!'
zr_trans.notify_fnm = 'First name length must be between '..zr_config.minlength..' and '..zr_config.maxlength..' characters!'
zr_trans.notify_lnm = 'Last name length must be between '..zr_config.minlength..' and '..zr_config.maxlength..' characters!'
zr_trans.notify_dat = 'Date format Invalide!'

-- Here you can translate the script to the language you prefer
zr_trans.maxch = zr_config.maxlength.." Characters Maximum."
zr_trans.miny = "Must be at least 18 years."
zr_trans.org = 'OR'
zr_trans.nat = "The country you come from."
zr_trans.hei = "Must be between 160 and 215 CM."

zr_trans.grul = "General rules"
zr_trans.grult = "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."
zr_trans.rrul = "Roleplay rules"
zr_trans.rrult = "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."
zr_trans.conf = "I confirm that I have read and accept all the server rules."

zr_trans.cancel = "Cancel"
zr_trans.create = "Create character"
zr_trans.join = "Join our discord."

zr_trans.Pfname = "FIRST NAME"
zr_trans.Plname = "LAST NAME"
zr_trans.Pdob = "DATE OF BIRTH"
zr_trans.Pnat = "NATIONALITY"
zr_trans.Phei = "HEIGHT"

-- Change the link to yours.
zr_config.discord = 'https://discord.gg/FwedjEV6kY'
circle-info

Open Source part of the script that we do provide in order to make your necessary changes for your server compatibility.

circle-exclamation
circle-exclamation

Last updated