Skip to content

Glossary

The words these docs use for things in the game and in your gamemode. Where SA-MP and open.mp have a name for the same thing, the docs use it (interior, virtual world, color, facing angle, text label); otherwise GTA:SA’s own.

Word Means
area A box or sphere in the world that your gamemode marks out with areas.create, to hear when players go in or out.
arrest, busted A cop catching a wanted player. The game then shows its Busted screen and the player respawns elsewhere; with a survival policy your gamemode can handle it instead. A busted player’s state is busted.
checkpoint One of the game’s checkpoints your gamemode puts in the world with checkpoints.create. Each player’s race checkpoint, from players.setRaceCheckpoint, is a different thing.
camera view A player’s camera put somewhere else by your gamemode, with camera.setFixed or camera.attach. The player keeps playing.
color A color as a number: 0xRRGGBB for a name or a chat line, 0xRRGGBBAA (with alpha, in a field ending in Rgba) for a marker.
connection One time a player is on the server, from joining to leaving. A player who comes back has a new connection; their ID may differ, and another player may get their old ID. PlayerSnapshot.connectionId names it.
decision A question the server asks your gamemode before something happens, such as playerEnterVehicleRequest. It waits for your answer. See how decisions work.
event A message that something already happened, such as playerEnteredVehicle. What your handler returns is ignored.
the game, the game’s own GTA:SA itself, as it runs on each player’s computer: its police, traffic, pedestrians, fires and scripts. Not SA-MP’s “natives”, which are script functions.
facing angle Which way a player or vehicle faces: facingAngleRadians for players, facingAngleDegrees for vehicles.
gamemode Your script: the TypeScript files the server runs.
handler The function you pass to server.on, commands.register or chat.onPlayerMessage.
interior Which interior a player or thing is in: 0 outside, 1 to 18 an interior’s, as in SA-MP. 13 means every interior, for objects, pickups and world markers.
listening position Where a player hears nearby chat: their listenPosition. Their own position unless a view started with listenAtView or players.setListenPosition moves it.
map icon An icon on the radar and the map, from mapIcons.create.
map edit A selection of stock objects hidden with mapEdits.hide.
object editor The in-game handles and camera a player uses to place, rotate or scale a script object. Open it with objects.beginEdit.
material The color and texture the game draws on part of a model. A material slot is the index of that part.
model Which kind of thing a vehicle, object or ped is, by GTA:SA’s number: a vehicle model from 400, a skin for a ped.
network ID The number every player’s game uses for the same ped, vehicle or object in the shared world. A field ending in NetworkId holds one. It is not a model, and not a player ID.
NPC A ped or a driver the game runs, not a player: pedestrians, traffic drivers, police, vendors.
payload The object a handler receives, with the event’s or decision’s fields. You cannot change it.
ped A person in the game: a player’s character, or an NPC.
player ID A player’s number on the server, from 1. A field ending in PlayerId holds one. Freed when the player leaves.
provenance: "client-report" A player’s game reported it. Good for gameplay, scores and logs; not proof, since a modified game can report anything.
server nativemp-server: it runs the shared world and your gamemode, and checks what the players’ games report.
session clock The clock every game on the server shares, in milliseconds. Fields ending in SessionMs use it. Fields ending in UnixMs or UnixSeconds use the real date and time; ServerMs is the server computer’s clock.
spectating A player watching another player or a vehicle with players.spectate, as in SA-MP. Their own character is hidden and out of play until they stop.
stock object An object GTA:SA places on its own map.
texture dictionary A named group of textures in GTA:SA.
shared world What every player sees the same: players, the vehicles and NPCs that matter, fires, your objects and pickups. Each player’s game runs part of it and the server passes the rest on.
snapshot A copy of something as the server last saw it, such as a PlayerSnapshot. It does not change; ask again for a newer one.
survival policy What may kill or arrest one player: invulnerability, a minimum health and who handles an arrest. Set with players.setSurvivalPolicy.
text label 3D text in the world, from textLabels.create, as open.mp’s text labels.
virtual world A number that splits players and what they see, as in SA-MP: players in different virtual worlds do not see each other. 0 to start with. See virtual worlds.
vehicle condition A vehicle’s health and damage-manager state: engine, panels, lights, tyres, and supported doors, hood and trunk. Read and change it with vehicles.getCondition and vehicles.setCondition.
vehicle control state A vehicle’s engine, headlights, windows, doors, hood, trunk, lock and siren settings, shared among players.
vehicle state snapshot A VehicleStateSnapshot with a vehicle’s current control state and supported condition, for restoring after a spawn.
world marker A text label, map icon, checkpoint or area. See world markers.
world rule One of the game’s features you can turn on or off for everyone, such as wanted or pickups. See world.isRuleEnabled.

| HTML resource | A built static directory registered with ui.registerResource. Its files and declared API origins form an immutable version. | | HTML view | One page opened for one player with ui.open. Repeated opens create separate views. |