[Release] JD_SafeZone

JD SafeZone

Safezone for FiveM (A place where you can't kill anyone and can't be killed)

Github
Download

Requirements
  • A Discord Server
  • FiveM FXServer
  • pNotify (Optional)
  • JD_logs (Optional)

Install
  1. Download the files
  2. Put the JD_SafeZone folder in the server resource directory
  3. Add this to your server.cfg:
ensure JD_SafeZone

Adding more Zones
["YOUR_NEW_ZONE"] = {
x = YOUR_NEW_ZONE_X,
y = YOUR_NEW_ZONE_Y, 
z = YOUR_NEW_ZONE_Z, 
radius = YOUR_NEW_ZONE_RADIUS
},

Config.lua
Config = {}

Config.Notifications = true			-- set this to true if you want notifications
Config.pNotify = false				-- Set this to true if you want to use pNotify
Config.Border = true				-- Set this to true if you want a SafeZone Border
Config.MapMarker = true				-- Set this to true if you want a marker on the Map
Config.TranspatentPlayers = true	-- Set this to true if you want Players/Vehicles to become transparent in the safezone
Config.AntiZoneCamp = false			-- Set this to true will add 10 meters extra to the zone when you exit. (this will not effect entering the zone only exiting)

Config.JD_logs = true				-- Set this to true if you're using JD_logs ( https://github.com/JokeDevil/JD_logs )
Config.JD_logs_Color = "5633648"	-- The color for the embed
Config.JD_logs_Channel = "safezone"	-- The channel for the logs

Config.Zone = { 					-- These are the SafeZones
	["Sandy PD"] = {x=1835.73,y=3676.72,z=39.89,radius = 50.0},
	
	["Mission Row"] = {x=446.8,y=-993.06,z=29.26,radius = 40.0},
	["Medical Center"] = {x=311.62,y=-1443.69,z=29.8,radius = 50.0},
}

-- This are the notifications
Config.Entered = "You have Entered a SafeZone"
Config.Left = "You have Left a SafeZone"
Config.Shoot = "You can NOT do that here"
Config.WeaponWheel = "You can NOT use weapons here"
Screenshots

(Notifications and map marker can be disabled in the config)
img
(Border and map marker can be disabled in the config)

pNotify (Optional)

img
img


8 Likes

I Have downloaded this… When putting it into the server.cfg and starting the server its not activating the default safe zones and letting me shoot within them… What shall i do to fix this?

1 Like

Does it give you any errors?

No errors, No notifications.

2 Likes

What FXServer version are you using?

1 Like

Version: FXServer-master SERVER v1.0.0.2430 win32

Could you add some screenshots?

2 Likes

theres nothing to really show, its a script that prevents people from Shooting in selected Areas. :smiley:

2 Likes

Hi.
One feature request here if possible.
Would it possible to add somekind of ingame command for staff that can create a zone.
Even circular one would work .
Would help on some small events in free roam server… carmeets etc.

Definitely need a video / pics. What does it look like visually / on the map?

can you possible put to police been hable to use weapons even on safe zone?

1 Like

Well there is an option to disable the map marker and the marker zones in the config :wink:

1 Like

That’s not the point geezer! :smiley:

There’re some safezone’s that are ugly af so Is nice to see It’s style or if it even has any visible markers…

installed this to my server and it disabled aiming all and shooting at players in or out of the safezone

Images added

1 Like

Is it posible to display the “Safezone” message for as long as the user stays inside it?

Update V1.0.2
Safezone now has PolyZones

Github
Download

2 Likes

have a bug here. when you go to the safezone you will not take any damage then when you go out in the safezone you are still not taking damage

3 Likes

i already solve this bug on my own thank you