Restricted Zone [ESX/QB] - [OPENSOURCE]

Restricted Zone

This ESX / QB script requires ox_lib (only ESX version) and allows you to create restricted zones if you have the necessary permissions. If you have set a waypoint, this will be taken as the point where the zone will be created. However, the information must be provided yourself (location, radius, reason). If no waypoint is set, your current position will be adopted. Everything can be easily configured in the config.

PREVIEW - ESX | PREVIEW - QB

BUY HERE - ESX Tebex-Store | 9.99€ incl. VAT

BUY HERE - QB Tebex-Store | 9.99€ incl. VAT

BUY BUNDLE - ESX Job Invite & Restricted Zone | 14.99€ incl. VAT

Save some money and get both straight away

Features and Capabilities

  1. Zone Definition:
    Define specific areas on your map as restricted zones.

  2. Customizable Script:
    Incorporate your own penalties or restrictions for players who enter restricted zones, such as health reduction or vehicle confiscation.

  3. Notification System:
    Inform players when restricted zones are created, edited or deleted with customizable messages.

  4. Database Integration:
    Restricted zones are stored in the database so changes can be made later or simple script extensions can be made.

  5. Easy Configuration:
    All settings can be adjusted in the configuration file.

Config Preview:

Config = {}

Config.DefaultLocale = 'de'

Config.OpenRestrictedZoneMenu = 'restrictedzone'

Config.jobPermissions = {
    create = {
        ["police"] = {"*"},
        ["fib"] = {"*"}
    },
    edit = {
        ["police"] = {"*"},
        ["fib"] = {"*"}
    },
    delete = {
        ["police"] = {"*"},
        ["fib"] = {"*"}
    }
}

Config.InsideTextUI = {
    Enabled = true,
    Text = "Sie befinden sich nun in einer Sperrzone",
    Position = 'bottom-center',
    Icon = 'exclamation-triangle',
}

Below that in the script are the respective translation options for the script.

Code is accessible Yes
Subscription-based No
Lines (approximately) 600 - 700
Requirements esx or qbcore, ox_lib (only for esx version)
Support Yes
2 Likes

pls make it qbcore too!

1 Like

Hey @cataleyacity, thanks for your suggestion. I’ll take a look at it in the next few days.

EDIT: The QB version is now also available!

The QB version is now also available!

PREVIEW - QB | BUY HERE - QB Tebex-Store | 9.99€ incl. VAT

1 Like

Bro I just purchase the script
all files including config.lua is escrowed

1 Like

Hey @muneeb_10, first of all thank you for your purchase. Everything should actually be freely accessible…
I’ve updated it again now. Download it again. Should work now.

1 Like

if player in vehicle . player can’t see zone

Hey @KamuNanyakk, I doubt that this is due to the script, as it does not carry out any queries regarding vehicles. If necessary, check the code again yourself or send me detailed information about it again.

NEWS from ClayScripts - Restricted Zone

Good evening, I would like to draw your attention to the fact that I am open to new ideas for updates or new scripts in general. Feel free to send a private message or reply.

Update - 1.1.0

  • Default input of the selected position (waypoint or player position) based on streets and district labels.
    image
  • Displayed when you are in/entering a restricted zone. Disappears as soon as you leave the zone or the zone is deleted.
    image
  • Improved the Job Permissions config option, as well as added the configuration of the InsideTextUI for the restricted zones