Jump to content

Latest antizombieareas wont work


Adde

Recommended Posts

Hello, I got a little problem with one script. When I add new Areas, It wont keep them zombieproof. It´s like the last 2 or 3 of them that´s not zombieproof and it doesn´t tell me anything in debug.

local safeZoneRadar = { 
{ -1704.0307, 644.0531, 150, 87, 0, 200, 0 }, 
{ -1581.42, 419.68, 370, 100, 0, 200, 0 }, 
{ 21.67, -2027.21, 3000, 1350, 0, 200, 0 }, 
{ 827.55, -2828.13, 2194, 900, 0, 200, 0 }, 
{ -72.80, 1641.66, 455, 461, 0, 200, 0 } 
, 
{ -1631.71, 259.03, 320, 170, 0, 200, 0 } 
, 
{ 2159.0454101563, -3506.8337402344, 330, 500, 200, 100, 0 }, 
{ 141.91612243652, -152.04411315918, 140, -160, 0, 0, 100 }, 
{ 74.169883728027, -143.12757873535, 70, -70, 0, 0, 100 }, 
{ -2702.9335, 42.9113, -101, 117, 255, 20, 20 }, 
} 
  
  
addEventHandler( "onResourceStart", resourceRoot,   
function () 
   for k, v in ipairs ( safeZoneRadar ) do 
local area = createRadarArea ( v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],v[9],v[10] ) 
setElementData(area,"zombieProof", true) 
    end 
end   
) 

Link to comment

-- # Server Side 
local safeZoneRadar = { 
{ -1704.0307, 644.0531, 150, 87, 0, 200, 0 }, 
{ -1581.42, 419.68, 370, 100, 0, 200, 0 }, 
{ 21.67, -2027.21, 3000, 1350, 0, 200, 0 }, 
{ 827.55, -2828.13, 2194, 900, 0, 200, 0 }, 
{ -72.80, 1641.66, 455, 461, 0, 200, 0 }, 
{ -1631.71, 259.03, 320, 170, 0, 200, 0 }, 
{ 2159.0454101563, -3506.8337402344, 330, 500, 200, 100, 0 }, 
{ 141.91612243652, -152.04411315918, 140, -160, 0, 0, 100 }, 
{ 74.169883728027, -143.12757873535, 70, -70, 0, 0, 100 }, 
{ -2702.9335, 42.9113, -101, 117, 255, 20, 20 } 
} 
  
addEventHandler( "onResourceStart", resourceRoot,   
function ( ) 
   for k, v in ipairs ( safeZoneRadar ) do 
        local area = createRadarArea ( v[1],v[2],v[3],v[4],v[5],v[6],v[7],255 ) 
                           if ( area ) then 
        setElementData(area,"zombieProof", true) 
                end 
             end 
        end) 

Ok any way try this!

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...