Escape Blocked Without Weapon | Safezone + Teleport Script | QBCore
A lightweight and powerful FiveM script that introduces full control over defined areas (zones) on your map. Designed for RP servers, gang bases, military zones, or any controlled PvP/safezone area, this system combines movement restrictions with safe and user-friendly teleportation.
Features:
Multiple Zone Support
Easily define as many zones as needed with coordinates and radius.
Exit Restriction Based on Weapon Possession
Players cannot leave the zone unless they have a weapon in their inventory.
No Shooting Inside Zones
Shooting is automatically disabled inside zone areas to enforce safety or RP rules.
/teleport
Command
Opens a selection menu where the player can choose another zone to teleport to.
/teleportto <zone_id>
Command
Quick teleport to any defined zone — only available when inside a zone.
Smart Zone Check
All teleport commands only work if the player is currently inside a valid zone.
Perfect for:
- Roleplay bases and organization HQs
- Gang zones or black-market areas
- Police or military RP (FOBs, checkpoints)
- PvP-controlled regions
- Event zones & script-based restricted areas
d-restrict_area.zip (2.2 KB)