Skip to content

venuePanicRequest

Asks your gamemode when a player sets off a venue’s own reaction: they shot inside, their wanted level rose there, or they aimed at or hurt the staff. Allowed, the venue panics on every player’s game: patrons duck or put their hands up, and bouncers turn on that player.

Renamed in 0.28 from venuePanic; see renamed names.

server.on("venuePanicRequest", ({ player, venue, interior, customerPanic, bouncersAttack, staffPanic }) => boolean | void | Promise<boolean | void>)
Name Type Description
player PlayerSnapshot The player who set it off; the bouncers go for them.
venue VenueEntry The venue, by GTA:SA’s own name for its interior; see Venues.
interior number The interior it is in.
customerPanic boolean The customers’ panic: a casino’s gamblers, a bar’s drinkers.
bouncersAttack boolean The bouncers turn on the player (casinos and strip clubs).
staffPanic boolean The venue’s own panic: its staff and patrons duck or put their hands up.

More than one can be true. A venue that has panicked asks again only for what it does not have yet.

false keeps the venue as it is: calm, or with only the panic it already had. Anything else lets it panic for everyone. See how decisions work.

The bouncers leave admins alone.

gamemodes/roleplay.ts
import { server } from "nativemp";
const admins = new Set<number>();
server.on("venuePanicRequest", ({ player, bouncersAttack }) => !(bouncersAttack && admins.has(player.id)));

Each name is the game’s entry-exit name for one interior; every street door into that interior has it.

venue Name in the game’s text Where
BAR1 Club The Alhambra in Idlewood, and clubs in San Fierro and Las Venturas
BAR2 Bar Ten Green Bottles in Ganton, and bars in San Fierro and Las Venturas
UFOBAR Lil’ Probe Inn Lil’ Probe Inn, Bone County
TRICAS The Four Dragons The Four Dragons Casino, Las Venturas
MAFCAS Caligula’s Casino Caligula’s Palace, Las Venturas
CASINO2 Casino Floor The casino in Redsands West, Las Venturas
LASTRIP Strip Club The Pig Pen in East Los Santos, and a strip club in Las Venturas
STRIP2 Strip Club The Big Spread Ranch in Bone County, and a strip club in Las Venturas
GENOTB Inside Track Betting The betting shops in Los Santos and Montgomery
RCPLAY Zero’s RC Shop Zero’s shop in Garcia, San Fierro
FDPIZA Pizza Stack Every Well Stacked Pizza
FDCHICK Cluckin’ Bell Every Cluckin’ Bell
FDBURG Burger Shot Every Burger Shot