🥕
Carotto Documentation
  • CAROTTO Scripts Documentation
    • 👋Welcome
    • 🔐Escrow System
    • 🛡️DMCA
  • SCRIPTS
    • carotto_npcdoctor
      • Config File
    • carotto_rental
      • Config File
    • carotto_coordsmenu
      • Config File
    • carotto_gofast
      • Config File
    • carotto_police
      • Config File
    • carotto_sheriff
      • Config File
    • carotto_jobcenter
      • Config File
    • carotto_bennys
      • Config File
    • carotto_unicorn
      • Config File
    • carotto_blackmarket
      • Config File
    • carotto_atmrobbery
      • Config File
    • carotto_safezones
      • Config File
    • carotto_loadingscreen
    • carotto_blipscreator
      • Config File
    • carotto_key
      • Config File
    • carotto_taxi
      • Config File
    • carotto_weather
      • Config File
    • carotto_hunting
      • Config File
    • carotto_fishing
      • Config File
    • carotto_garage
      • Config File
    • carotto_marketV2
      • Config File
Powered by GitBook
On this page
  1. SCRIPTS
  2. carotto_safezones

Config File

Config = {}
--[IMPORTANT]------------------------------------------------------------------------------------------------------------------------------------------------
Config.Framework = 'newesx' -- oldesx / newesx / oldqb / newqb
Config.VersionChecker = true -- true / false -- [ I recommend.. ]
Config.Debug = false -- true / false
--[MAIN]-----------------------------------------------------------------------------------------------------------------------------------------------------
Config.AuthorizedJobs = { 'police', 'ambulance', 'mechanic' } -- [ If you want to add a new job, then you have to add it here and in the "Config.JobSettings" too for customization! ]
Config.JobZonesCommand = 'carotto-jobzones' -- [ This commnad actually can be anything ]
Config.EnableAgreeMenu = true -- [ A menu where you can confirm to open the menu or not ]
Config.EnableNotifications = true -- [ enable notifications if someone enters the zone ]

Config.PublicZones = {
    [1] = {
        coords = vector3(225.65, -786.12, 30.87),
        radius = 30.0,
        name = 'Public Zone 1',
        disarm = true, -- [ disarm player ]
        carslowdown = true, -- [ slow downs a car ]
        enableBlip = true,-- [ Enable or disable blip for this zone ]
        maxspeed = 20.0 -- [ only if "carslowdown" value is true ]
    }
}

Config.RemoveNPC = true -- [ removes the npcs in the zones ]
Config.JobSettings = { -- [ https://docs.fivem.net/docs/game-references/blips/ ]
    ['police'] = {
        blips = { title = 'Police Zone', sprite = 60, color = 29, size = 0.7 },
    },
    ['ambulance'] = {
        blips = { title = 'Ambulance Zone', sprite = 61, color = 1, size = 0.7 },
    },
    ['mechanic'] = {
        blips = { title = 'Mechanic Zone', sprite = 446, color = 39, size = 0.7 },
    }
}
--[NOTIFICATIONS]--------------------------------------------------------------------------------------------------------------------------------------------
Config.NotificationSystem = 'ox-notification' -- codem-notification / ox-notification / okok-notificatio
Previouscarotto_safezonesNextcarotto_loadingscreen

Last updated 6 days ago