Skip to content
ASArcaneMP Scripting APIScripting reference
Data shapeClient APIGenerated

Entity

Defined in: shared.d.ts:63

Base networked entity handle, provided by the MafiaHub Framework.

toString(): string

Defined in: shared.d.ts:74

string

readonly id: number

Defined in: shared.d.ts:65

Network id, stable for the entity’s lifetime.


position: Vector3

Defined in: shared.d.ts:67

World position. Read, call set(...), then assign back.


rotation: Vector3 | Quaternion

Defined in: shared.d.ts:69

Reads as a quaternion; assignments also accept Euler angles in degrees.


readonly state: StateBag

Defined in: shared.d.ts:71

This entity’s key/value state: the server writes it, and every client that can see the entity receives it. See StateBag.


readonly virtualWorld: number

Defined in: shared.d.ts:73

The virtual world this entity replicates in. Read-only: change it with setVirtualWorld on the server.