Skip to content

VimpClient

@vimp-mp/types 2.0.1

Interface · Client API

Root API installed as the global vimp object in client scripts.

ts
interface VimpClient

Members

blips

ts
readonly blips: BlipManager

Local and streamed blip manager.

browsers

ts
readonly browsers: BrowserManager

CEF browser manager.

cameras

ts
readonly cameras: CameraManager

Scripted and gameplay camera manager.

colshapes

ts
readonly colshapes: ColshapeManager

Local and streamed colshape manager.

connection

ts
readonly connection: ConnectionManager

Multiplayer connection controls.

cursor

ts
readonly cursor: CursorManager

CEF cursor controls.

entities

ts
readonly entities: EntityMetaReader

Generic stream-synced meta reader for any entity. For Player there are also class-level shortcuts on the Player instance that bind type and the server player id implicitly. For entity wrappers with separate client-local ids, pass entity.remoteId.

graphics

ts
readonly graphics: VimpGraphics

Screen drawing helpers.

markers

ts
readonly markers: MarkerManager

Local and streamed marker manager.

nametags

ts
readonly nametags: NametagManager

Multiplayer nametag controls.

natives

ts
readonly natives: VimpNatives

Typed GTA V native namespaces.

objects

ts
readonly objects: ObjectManager

Local and streamed object manager.

peds

ts
readonly peds: PedManager

Local and streamed ped manager.

players

ts
readonly players: PlayerManager

Local and remote player manager.

storage

ts
readonly storage: StorageManager

Server-scoped persistent storage.

vehicles

ts
readonly vehicles: VehicleManager

Local and streamed vehicle manager.

voice

ts
readonly voice: VoiceManager

Voice state and playback controls.

emitServer

ts
emitServer<K extends never>(event: K, data: VimpServerInboundEvents[K]): void
ts
emitServer(event: string, data: unknown): void

Send a custom event to the server. data is JSON-serialized unless it is already a string.

notify

ts
notify(text: string): void

Show a HUD notification. Supports GTA color codes (~r~, ~g~, ...).

on

ts
on<K extends keyof VimpClientBuiltinEvents>(event: K, callback: VimpClientBuiltinEvents[K]): void
ts
on<K extends never>(event: K, callback: (data: VimpClientEvents[K]) => void): void
ts
on(event: string, callback: (...args: Array<any>) => void): void

Registers a handler for a built-in client event.

VIMP developer documentation