Skip to content

helicopterCapExceedRequest

GTA:SA limits how many police and news helicopters fly at once. When the limit is reached and a player’s game would still send one, asks your gamemode whether this one may come anyway.

Renamed in 0.28 from helicopterCapRequest; see renamed names.

server.on("helicopterCapExceedRequest", ({ player, unit, helicopterService, currentHelicopterCount, helicopterCap }) =>
boolean | void | Promise<boolean | void>)
Name Type Description
player PlayerSnapshot The player whose game would send it.
unit DispatchUnitProposal The helicopter and its crew.
helicopterService "police" | "news" A police Maverick or a news helicopter.
currentHelicopterCount number How many fly now.
helicopterCap number The game’s limit.

Only true lets this one helicopter come. false, or nothing, keeps the limit. An allowed police helicopter still goes through policeUnitDispatchRequest. See how decisions work.

One news helicopter more than the limit.

gamemodes/my-mode.ts
import { server } from "nativemp";
server.on("helicopterCapExceedRequest", ({ helicopterService, currentHelicopterCount, helicopterCap }) =>
helicopterService === "news" && currentHelicopterCount === helicopterCap);