A lightweight and optimized resource for FiveM that handles restricted zones and prohibited areas. This script allows players to, complete with database integration.
- Zone Management: Define multiple restricted areas with custom coordinates and radius.
- Database Integration: Loads zone data or permissions directly from the database.
- Job Permissions: Whitelist specific jobs (e.g., Police, EMS) to bypass restrictions.
- Optimized Performance: Low CPU usage (0.00ms idle).
Before installing, ensure you have the following resources installed:
- oxmysql
- [ESX Legacy]
Follow these steps to install the resource on your server:
-
Download and Extract: Download the repository and extract the
vyntra-restrictedzonesfolder to your server'sresourcesdirectory. -
Database Setup: Import the provided SQL file into your database to create the necessary tables.
- File:
restrictedzones.sql
- File:
-
Configuration: Open
cl_main.luaandsv_main.luato adjust specific settings if necessary (e.g., notification texts, zone radius, or authorized jobs). -
Server Config: Add the resource to your
server.cfgfile. Ensure it is started after your database resource.ensure vyntra-restrictedzones
Once the script is running, the restricted zones defined in the code or database will be active.
- Zones not appearing? Check your client console (F8) and server console for any errors. Ensure the table from
restrictedzones.sqlexists in your database. - Script errors: Make sure you are using the correct framework version (ESX).
This software is provided for entertainment purposes only. The authors are not responsible for any damage caused to your server or data. Use at your own risk. By using this resource, you agree to these terms.