Uma talvez solução, não absoluta é por o resource pai como prioridade para baixar primeiro.
Mas tome cuidado usar esse função executando a todo momento pode ter grande queda de performance
https://wiki.multitheftauto.com/wiki/GetZoneName
https://wiki.multitheftauto.com/wiki/GetElementPosition
use a condition in function that spawn the zombies.
if ( players and getTeamName ( players ) == "Team1" ) then
You can try it
but '''if player is in colshape but not in team "team1", he wont be counted as a number of players inside the colshape.''
idk if its possible, only if you create a table and insert just the players that are in team inside table and then get the players.
Get players z position and make a condition
Ex:
local x,y,z = getElementPosition(localPlayer)
if z > 20 then
return
end
OBS: ( the 20 is just an example get your player position in marker and add more o less depending where is your marker )