Skip to content
FMFallout Multiplayer Scripting APIScripting guides and API
Runtime classServer APIGenerated

Checkpoint

Defined in: server/api.d.ts:2453

A ring on the ground on every player’s screen, as FiveM resources draw a marker with CreateCheckpoint or DrawMarker: a translucent upright cylinder at a job’s pickup, a shop’s door, a race’s next gate. A player sees it while they are in its worldspace or interior and within its range. It shows the place; Zone.create with the same center and radius tells scripts who steps in. Move it with setPosition, not by setting position.

new Checkpoint(id): Checkpoint

Defined in: server/api.d.ts:2458

Wraps the checkpoint with this ID; it creates nothing.

number

Network entity identifier.

Checkpoint

Entity.constructor

destroy(): boolean

Defined in: server/api.d.ts:2469

Takes the checkpoint off every player’s screen.

boolean

False once it is gone.


setColor(color): boolean

Defined in: server/api.d.ts:2482

Changes its color.

number

0xRRGGBBAA; the alpha is the wall’s, the rim is drawn more solid.

boolean

False once it is gone.


setPosition(position, space?): boolean

Defined in: server/api.d.ts:2497

Moves it.

Vector3

The middle of its base, on the ground.

{ worldSpace: number; } | { interiorCell: number; }

Where that is; its current space when left out.

boolean

False once it is gone.


setRadius(radius): boolean

Defined in: server/api.d.ts:2489

Widens or narrows it.

number

Game units, above 0 and at most 5000.

boolean

False once it is gone.


setVirtualWorld(world): void

Defined in: server/api.d.ts:4292

Moves this entity into another virtual world.

number

Virtual-world identifier used to partition replication and visibility.

void

Entity.setVirtualWorld


setVisibleTo(player): void

Defined in: server/api.d.ts:4298

Restricts replication of this entity to one owning connection while preserving normal range and visibility checks.

Entity | null

Player-owned entity whose connection should exclusively receive this entity, or null to clear the restriction.

void

Entity.setVisibleTo


toString(): string

Defined in: server/api.d.ts:2475

Formats this handle for logging.

string

The checkpoint’s network ID and radius.

Entity.toString


static all(): Checkpoint[]

Defined in: server/api.d.ts:2510

Every checkpoint.

Checkpoint[]

One handle per checkpoint.


static create(options): Checkpoint | null

Defined in: server/api.d.ts:2504

Puts a ring on the ground for every player, or one player.

position: the middle of its base, on the ground. radius: 100 by default, at most 5000. height: how high its wall rises, 50 by default, 0 for a flat ring. color: 0xRRGGBBAA, a translucent amber by default. range: how far from a player it is drawn, 3000 by default, at most 20000. space: its worldspace or interior, the Commonwealth when left out. player: the one player who sees it, everyone when left out.

number

number

Player

Vector3

number

number

{ worldSpace: number; } | { interiorCell: number; }

Checkpoint | null

The checkpoint; null when it could not be made. Throws for options without a position, or a radius out of range.

readonly id: number

Defined in: server/api.d.ts:4260

Immutable network entity identifier.

Entity.id


position: Vector3

Defined in: server/api.d.ts:4270

Authoritative world-space position; assignment forces replicated state.

Entity.position


readonly radius: number

Defined in: server/api.d.ts:2463

Its radius in game units; 0 once it is gone.


rotation: Vector3 | Quaternion

Defined in: server/api.d.ts:4275

Authoritative rotation; reads return a quaternion and assignments accept a quaternion or Euler angles in degrees.

Entity.rotation


readonly state: StateBag

Defined in: server/api.d.ts:4280

Arbitrary key/value state carried by this entity. The server writes it and every client that can see the entity receives it; see StateBag.

Entity.state


readonly virtualWorld: number

Defined in: server/api.d.ts:4265

Current virtual-world identifier.

Entity.virtualWorld