Lusty94
Tebex StoreSupport DiscordGitHubCFX Profile
  • 👋 Lusty94 Scripts
  • 💵Store Discounts
  • 📥 Script Installation
  • 🤝Supported Scripts
  • 📜Paid Resouces
    • 🍻Bars
      • 🔧Changelogs
      • 💼 Jobs
      • 📦Stashes
      • 👁️Blips
      • 🧩Props
      • 👆Interaction Locations
      • 📸CCTV
      • 🍳Recipes
      • 📬Supplies
      • 🥦Ingredients
    • 🍁Weed Shops
      • 🔧Changelogs
      • 💼 Jobs
      • 📦Stashes
      • 👁️Blips
      • 🧩Props
      • 👆Interaction Locations
      • 🍃Picking
      • 📸CCTV
      • 🍳Recipes
      • 📬Supplies
      • 🥦Ingredients
      • 🚬Consumables
    • 💲Money Wash
    • 💰Pawn Shop
      • 🔧Changelogs
      • 🛒Pawnshop Locations
    • 📲Drug Sales
      • 🔧Changelogs
      • 📲Selling
      • 💻Default Configuration
    • 🚗Chop Shop
      • 🔧Changelogs
      • 📅SQL
      • 🗣️Commands
      • 📋Reputation
      • 💰Selling
      • 🚗Chop Shops
      • 💻Default Configuration
    • 🚘Vehicle Shop
      • 🔧Changelogs
      • 📅SQL
      • 🗣️Commands
      • 📥Database
      • 🚘Vehicle Shops
      • 💻Default Configuration
    • 🚗Rental
    • 🚙Towing
    • 🍲Restaurants
    • 💊Drugs
    • 🍁Weed
  • 📜Free Resources
    • 🛒Shops
      • 🔧Changelogs
      • 🛒Adding Shops
      • 🪛Configuration
    • 🖥️Boss Menu
      • 🔧Changelogs
      • 💻Adding Job Locations
    • ✅Green Zones
      • 🔧Changelogs
      • 📌Adding Zones
Powered by GitBook
On this page
  1. Free Resources
  2. Green Zones

Adding Zones

IMPORTANT INFORMATION

  • The key is the zone name and must be unique

  • Set debug to true to display this zone location

  • The coords value must be a vector3

  • The thickness value is the thickness of the zone

  • The radius value is the radius or size of the zone

Config.Greenzones = {
    ['my_new_zone_name'] = { -- the key must be unique
        info = {-- zone info
            debug = true, -- debug zone
            coords = vector3(310.3, -590.55, 43.29), -- zone spawn coords
            thickness = 10, -- zone thickness
            radius = 65, -- zone radius
        },
        states = { -- define states in this zone
            resetHealth = true, -- resets the players health back to 100 in this zone
            resetStress = true, -- resets the players stress back to 0 in this zone
            resetHunger = true, -- resets the players hunger back to 100 in this zone
            resetThirst = true, -- resets the players thirst back to 100 in this zone
            invincible = true, -- makes the player invincible in this zone
            invisible = true, -- makes the player semi-invisible in this zone
            noRagdoll = true, -- stops players ragdolling in this zone
        },
        restrictions = { -- define restrictions in this zone
            disarm = true, -- disarms the player in this zone if carrying a weapon
            melee = true, -- disable melee in this zone
            shooting = true, -- disable shooting in this zone
            driveby = true, -- disables drive by shooting in this zone
            vehicleWeapons = true, -- disables vehicle weapons in this zone
            lockInventory = false, -- locks the players inventory in this zone
        },
        ignore = { -- define ignore restrictions in this zone
            staff = { -- ignore restrictions for permissions
                --add permissions here or leave this empty
                'admin',
                'god',
                'mod',
            },
            jobs = { -- ignore restrictions for jobs
                --add jobs here or leave this empty
                'ambulance',
            },
            gangs = {-- ignore restrictions for gangs
                --add gangs here or leave this empty
            },
        },
    },
    --add more zones as required
}

States

  • You can apply various states to players when they enter the zone by defining which option to enable in the states field

states = { -- define states in this zone
    resetHealth = true, -- resets the players health back to 100 in this zone
    resetStress = true, -- resets the players stress back to 0 in this zone
    resetHunger = true, -- resets the players hunger back to 100 in this zone
    resetThirst = true, -- resets the players thirst back to 100 in this zone
    invincible = true, -- makes the player invincible in this zone
    invisible = true, -- makes the player semi-invisible in this zone
    noRagdoll = true, -- stops players ragdolling in this zone
},

Restrictions

  • You can apply various restrictions to players when they enter a zone by defining which option to enable in the restrictions field

restrictions = { -- define restrictions in this zone
    disarm = true, -- disarms the player in this zone if carrying a weapon
    melee = true, -- disable melee in this zone
    shooting = true, -- disable shooting in this zone
    driveby = true, -- disables drive by shooting in this zone
    vehicleWeapons = true, -- disables vehicle weapons in this zone
    lockInventory = false, -- locks the players inventory in this zone
},

Ignore Restrictions

  • You can set various staff/admin permission levels, job and gang names to be exempt from the restrictions when inside a zone

  • Simply define the relevant name in the correct section you wish to be exempt from restrictions inside the zone

ignore = { -- define ignore restrictions in this zone
    staff = { -- ignore restrictions for permissions
        --add permissions here or leave this empty
        'admin',
        'god',
        'mod',
    },
    jobs = { -- ignore restrictions for jobs
        --add jobs here or leave this empty
        'ambulance',
    },
    gangs = {-- ignore restrictions for gangs
        --add gangs here or leave this empty
    },
},

Last updated 3 days ago

📜
✅
📌