Configuration
Discover how to config your script.
How to add more spawns :
After adding it to the config, you need to put your location png picture or better if it is webp under this path with the same file name you have in the config:
Path : zr-locations\zr-nui\zr-assets
The pictures size we using is 1,920 x 1,080.
Config file :
zr_config = {}
zr_config.zr_translation = {}
zr_trans = zr_config.zr_translation
-- We support the following frameworks: 'QB' / 'ESX'
zr_config.framework = 'QB'
zr_config.QB = 'qb-core'
zr_config.ESX = 'es_extended'
zr_config.OnlyLastLocation = false
zr_trans.last = "Last Location."
zr_trans.lastinfo = "You will spawn in your last location"
zr_trans.spawn = "Spawn here."
zr_trans.spawnlast = "Spawn at last location"
zr_config.zr_locations = {
{
name = "cityhall",
label = "City Hall",
description = "Government hub for city operations and decision-making.",
spawn = vector4(-536.2222, -226.3347, 37.666244, 212.51023),
image = "./zr-assets/cityhall.webp"
},
{
name = "unicorn",
label = "Vanilla Unicorn",
description = "Premier strip club with music, exotic performances, and a lively atmosphere.",
spawn = vector4(155.4, -1303.31, 29.2, 105.84),
image = "./zr-assets/unicorn.webp"
},
{
name = "pinkcage",
label = "Pink Cage Motel",
description = "Colorful motel, rent a room, meet travelers, experience unique charm.",
spawn = vector4(313.76745, -230.6358, 53.990818, 153.79005),
image = "./zr-assets/motel.webp"
},
{
name = "park",
label = "Pleasure Park",
description = "Entertainment hub with rides and games. Lively atmosphere for fun with friends.",
spawn = vector4(-1850.43, -1232.158, 13.01728, 141.12789),
image = "./zr-assets/park.webp"
},
{
name = "vehicleshop",
label = "Premium Deluxe Autos",
description = "High-end vehicle shop. Browse and purchase stylish rides.",
spawn = vector4(-42.1563, -1108.702, 26.438091, 162.17939),
image = "./zr-assets/pdm.webp"
},
{
name = "prison",
label = "Prison",
description = "High-security prison for the city's most notorious criminals.",
job = "police",
spawn = vector4(1847.7116, 2585.9758, 45.67237, 100.0),
image = "./zr-assets/prison.webp"
},
{
name = "pd",
label = "Police Department",
description = "Police HQ, coordinating law enforcement and holding cells.",
job = "police",
spawn = vector4(411.24, -974.0, 29.42, 80.92),
image = "./zr-assets/pd.webp"
},
{
name = "hospital",
label = "Hospital",
description = "Essential healthcare hub with emergency services.",
job = "ambulance",
spawn = vector4(299.64801, -575.1514, 43.260845, 76.685317),
image = "./zr-assets/hospital.webp"
},
}
zr_config.zr_last_location = {
name = "lastlocation",
label = "Last Location",
description = "Taxi ready to take you to your last location. Reconnect and resume from where you left off.",
spawn = vector4(-536.2222, -226.3347, 37.666244, 212.51023),
image = "./zr-assets/taxi.webp"
}
Last updated