[standalone]sinor-safezone

this resource will add safezones with NPCs that will engage players carrying weapons.
it can be used in eather safezones or other locations like
policestation

hospital

Features

Configurable safe zones with NPCs

NPCs equipped with configurable weapons

NPCs can be invincible and freeze in place

Blips indicating safe zones

config

Config = {
    SafeZones = {
        -- EXAMPLE SAFEZONE
        -- police
        {
            coords = vector3(431.13, -978.57, 30.71),
            radius = 50.0, -- anotherRadius
            blipradius = 1.5,
            showblip = false,
            blipsprite = 120,
            blipscale = 0.9,
            blipcolor = 2,
            blipname = "Military Safe Zone",
            npcs = {
                model = "s_m_y_hwaycop_01",
                weapons = {"WEAPON_ASSAULTRIFLE", "WEAPON_CARBINERIFLE", "WEAPON_COMBATMG"},
                invincible = true, -- this makes invincible
                freeze = true, -- This option enables freezing NPCs
                positions = {
                    [1] = vector4(431.13, -978.57, 29.71, 90.26),
                    [2] = vector4(430.88, -985.67, 29.71, 90.69),
                    -- Add more positions as needed
            
                }
            }
        },
        -- hospital
        {
            coords = vector3(298.35, -584.74, 43.26),
            radius = 50.0, -- anotherRadius
            blipradius = 1.5,
            showblip = false,
            blipsprite = 120,
            blipscale = 0.9,
            blipcolor = 2,
            blipname = "Military Safe Zone",
            npcs = {
                model = "s_m_y_cop_01",
                weapons = {"WEAPON_ASSAULTRIFLE", "WEAPON_CARBINERIFLE", "WEAPON_COMBATMG"},
                invincible = true, -- this makes invincible
                freeze = true, -- This option enables freezing NPCs
                positions = {
                    [1] = vector4(297.24, -586.6, 42.26, 73.11),
                    [2] = vector4(298.75, -581.22, 42.26, 81.63),
                    -- Add more positions as needed
            
                }
            }
        },
        -- Add more safe zones if needed
    }
}

Tebex : here

Preview :

Other Scripts

AdvancedZombieSystem
RobberyCreator
LootPeds
RadiationZones
ZombieSystem
Shop
WeatherSync
PhoneStoreRobbery
InGameMusic
CamperHousing
LootBags

Support:
you can join my discord for any support ! Sinor System

Code is accessible Config
Subscription-based No
Lines (approximately) 200+
Requirements FiveM
Support Yes
4 Likes

such a basic and easy to do script plus free you make it scrowed? later I will upload the same one but open source xD

sure tag me ill claim it

Why not open source?

I have my reasons

pls send on github

1 Like

Strangely after moving the location of these peds, they run on the spot and try to follow me!

Free resouces must include a direct download link or a github link

its free escrow ,read the new rules

sorry its free escrow

for now keep them freezed next update will be fixed

oh fr, you can do that now? did not know mate

1 Like

Freezing is on, but alright bud thank you

1 Like

can you make it so that when the NPC starts shooting at the player who did something stupid, it can happen on the server side so that everyone sees the NPC being shot and you can fix the fact that the NPC is frozen but can be rotating in its position

1 Like

Mb I did not test it in my other server I only tested it in my localhost next update should be fixed

Ok no problem, that’s why I asked for open source, because I had this problem I wanted to fix it, sorry ^^

1 Like

nice work bro

1 Like

suggestion: do me a solid. Don’t use radius… use polyzones… thats a big lack in a safezone script out there right now

the radius is not realy importent its jest there to allow peds to spawn its not player related

may i know is this the same one as your previous safezone script or different one?