Open-source FiveM scripts, MLOs, vehicles & server packs for ESX, QBCore & Qbox. Browse Shop →
All Shop
RedM Safe Zone Script

Description

RedM Safe Zone Script adds protected no-fighting areas to a RedM server. You define each zone by name, coordinates and radius, and players who are inside a zone see its name on screen and cannot use a set of combat controls.

Features

  • Zones defined by name, position and radius in config.lua; the preset zones are Clothes Shop, Stable Horse, Changing Room and Job Area, and you can add your own
  • A banner with the zone name appears on screen while the player is inside the zone and disappears when the player leaves
  • 13 control actions are disabled inside a zone
  • A “NO FIGHTING IN THIS ZONE” notification is shown when combat is detected in a zone
  • Optional god mode inside zones with AFU.IsGodModeInSafeZone, off by default
  • Debug mode with AFU.DebugMode draws a marker for the zone you are in

Requirements

  • RedM (the manifest targets rdr3)
  • No framework required
  • A resource named LRP_Notify that provides DisplayLeftNotification, or replace that call in client.lua with your own notification

Installation

  1. Copy the AFU_SAFEZONE folder into your resources folder.
  2. Add ensure AFU_SAFEZONE to your server.cfg.
  3. Replace the preset zones in config.lua with your own coordinates and radii.
  4. The zone banner text is in html/script.js and is written in Thai; edit it to change the language.

Related resources

All resources →