Skip to content

Client API

@vimp-mp/types 2.0.1

Streamed entities, browsers, cameras, input, storage, voice, and client events.

DeclarationDescription
BlipServer-known blip.
BlipCreateOptionsInitial state applied when creating a client-local map blip.
BlipManagerCreates client-local blips and tracks server-owned blip wrappers.
BrowserCEF (Chromium Embedded Framework) UI overlay.
BrowserManagerCreates and tracks CEF browser overlays.
CameraScripted or gameplay camera exposed by the client runtime.
CameraManagerCreates scripted cameras and exposes the gameplay camera.
ChatMessagePayloadChat message delivered by the multiplayer server.
ColshapeServer-known colshape trigger volume.
ColshapeCreateOptionsMetadata applied when creating a client-local colshape.
ColshapeManagerCreates client-local colshapes and tracks server-owned trigger volumes.
ColshapeTypeGeometric kind of a client colshape wrapper.
ConnectionManagerControls the multiplayer server connection.
ConnectionStateCurrent multiplayer connection state exposed to client scripts.
ConnectionStateChangedPayloadConnection details delivered after a connect or disconnect transition.
CursorManagerControls the CEF mouse cursor and reports its screen position.
EntityMetaReaderRead-only view of an entity's stream-synced meta from client code.
EntityTypeIdDiscriminant matching EntityType::as_u8 on the server.
EntityTypeMapNumeric discriminants used by the generic client entity metadata API.
MarkerServer-known marker.
MarkerCreateOptionsInitial state applied when creating a client-local marker.
MarkerManagerCreates client-local markers and tracks server-owned marker wrappers.
NametagManagerControls rendering of multiplayer player nametags.
ObjectServer-known object.
ObjectCreateOptionsInitial state applied when creating a client-local object.
ObjectManagerCreates client-local objects and tracks server-owned object wrappers.
PedClient-created local ped or server-known ped.
PedCreateOptionsInitial state applied when creating a client-local ped.
PedManagerManages ped instances in this scripting context.
PlayerPlayer known to this client.
PlayerManagerProvides access to the local player and remote players known to the client.
PlayerVehicleEventPayloadPayload emitted when the local player enters or leaves a vehicle.
RgbRGB color with byte-sized channels.
StorageManagerPersistent JSON storage scoped to the current server.
StreamSyncedMetaChangePayloadDescribes one replicated entity-metadata update observed by the client.
VehicleServer-known vehicle.
VehicleCreateOptionsInitial state applied when creating a client-local vehicle.
VehicleLightStateCurrent low-beam and high-beam state of a vehicle.
VehicleManagerCreates local vehicles and tracks server-owned vehicle wrappers.
VimpClientRoot API installed as the global vimp object in client scripts.
VimpClientBuiltinEventsBuilt-in client-side events.
VimpClientEventsCustom events received from the server (broadcast via vimp.emitAllClients or sent to one player via player.emit).
VimpDrawTextOptionsOptional GTA text-rendering state applied by vimp.graphics.drawText.
VimpGraphicsImmediate-mode screen drawing helpers.
VimpServerInboundEventsCustom events the client sends to the server (vimp.emitServer).
VoiceChannelChangedPayloadPrevious and current channel IDs after a local voice-route change.
VoiceErrorPayloadStructured diagnostic information emitted by the voice subsystem.
VoiceErrorReasonStable category suitable for localized handling of a voice error.
VoiceManagerExposes local voice state, channels, and per-player playback controls.
VoiceStateSnapshot of the local voice subsystem state.

VIMP developer documentation