Readonlyplayers: EntityCollection<Player>Connected players visible to scripts, indexed by network entity ID.
Readonlyvehicles: EntityCollection<Vehicle>Spawned vehicles visible to scripts, indexed by network entity ID.
Advances the replicated traffic-light cycle by one epoch.
The new monotonically increasing traffic epoch.
Returns the replicated arcade driving coefficient.
A value from 0 for simulation handling to 1 for arcade handling.
Returns the named driving-mode category for the current coefficient.
Arcade at coefficient 1, simulation at 0, or custom for an intermediate value.
Returns the replicated rain-intensity override.
A value from 0 to 100, or -1 when no override is active.
Returns the current replicated game time as clock components.
The current hour and minute.
Returns the current game time in the engine's normalized representation.
A value from 0 inclusive to 1 exclusive, where 0 is midnight and 0.5 is noon.
Returns the current game-clock speed multiplier.
The non-negative replicated time scale.
Returns the current replicated traffic-light epoch.
The current traffic cycle counter.
Returns the active replicated weather template.
The configured template name, or an empty string when world state is unavailable.
Broadcasts a police radio event globally or around a world-space position.
Police radio event name or numeric event identifier.
Optionalx: number
Optional world-space X coordinate; all four location arguments must be supplied together.
Optionaly: number
Optional world-space Y coordinate.
Optionalz: number
Optional world-space Z coordinate.
Optionalrange: number
Optional dispatch radius around the supplied position.
Sets the replicated vehicle driving model.
Arcade, simulation (or sim), or a custom arcade coefficient from 0 to 1; numeric values are clamped.
Sets or disables the replicated rain-intensity override.
Rain override from 0 to 100; a negative value disables the override.
Sets the replicated game time.
Hour of day; the combined time is clamped to the valid 24-hour range.
Optionalminute: number
Minute of the hour; defaults to zero.
Sets how quickly replicated game time advances.
Game-clock speed multiplier; negative values are clamped to zero.
Sets the active replicated weather template.
Mafia II weather template name to replicate to clients.
Controls replicated world state and exposes collections of connected players and spawned vehicles.