Description:
- Multiple Safezones
- Blips where the safezones are
- Disable all weapons in Safezones
- Persistent Notification when in Safezone
Links
Other Scripts
Description:
Links
Other Scripts
so many questions is it standelone, how to create safezones because there is no config file
I have updated, please download and check again.
the they you did it you can still hit players with key Rthis is basic code with chatgbt and the wait(500) is then you are not in the safezone it uses 0.0. And you need to put it on github or make direct dowloand
CreateThread(function()
while true do
if inSafeZone then
Wait(0) -- Only run this loop actively when in a safe zone
-- Disable specific actions in safe zones
DisableControlAction(0, 24, true) -- Attack
DisableControlAction(0, 25, true) -- Aim
DisableControlAction(0, 47, true) -- Weapon special action
DisableControlAction(0, 58, true) -- Alternate attack
DisableControlAction(0, 140, true) -- Melee attack light
DisableControlAction(0, 141, true) -- Melee attack heavy
DisableControlAction(0, 142, true) -- Melee attack alternate
DisablePlayerFiring(PlayerPedId(), true) -- Disable firing
-- Allow reload
if IsControlPressed(0, 45) then -- Key R
local weapon = GetSelectedPedWeapon(PlayerPedId())
if weapon and weapon ~= `WEAPON_UNARMED` then
EnableControlAction(0, 45, true) -- Allow reload
end
end
else
Wait(500) -- When outside safe zones, reduce loop frequency
end
end
end)
resmon 0.35
in safe zone can be but out of safe zone its 0.0
idk im not in zone and is 0.37 now.
btw can you add option for special jobs who can use weapons and hit ppl in zone like police and more ?
Check again.