VimpClient
@vimp-mp/types 2.0.1Root API installed as the global vimp object in client scripts.
interface VimpClientMembers
blips
readonly blips: BlipManagerLocal and streamed blip manager.
browsers
readonly browsers: BrowserManagerCEF browser manager.
cameras
readonly cameras: CameraManagerScripted and gameplay camera manager.
colshapes
readonly colshapes: ColshapeManagerLocal and streamed colshape manager.
connection
readonly connection: ConnectionManagerMultiplayer connection controls.
cursor
readonly cursor: CursorManagerCEF cursor controls.
entities
readonly entities: EntityMetaReaderGeneric 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
readonly graphics: VimpGraphicsScreen drawing helpers.
markers
readonly markers: MarkerManagerLocal and streamed marker manager.
nametags
readonly nametags: NametagManagerMultiplayer nametag controls.
natives
readonly natives: VimpNativesTyped GTA V native namespaces.
objects
readonly objects: ObjectManagerLocal and streamed object manager.
peds
readonly peds: PedManagerLocal and streamed ped manager.
players
readonly players: PlayerManagerLocal and remote player manager.
storage
readonly storage: StorageManagerServer-scoped persistent storage.
vehicles
readonly vehicles: VehicleManagerLocal and streamed vehicle manager.
voice
readonly voice: VoiceManagerVoice state and playback controls.
emitServer
emitServer<K extends never>(event: K, data: VimpServerInboundEvents[K]): voidemitServer(event: string, data: unknown): voidSend a custom event to the server. data is JSON-serialized unless it is already a string.
notify
notify(text: string): voidShow a HUD notification. Supports GTA color codes (~r~, ~g~, ...).
on
on<K extends keyof VimpClientBuiltinEvents>(event: K, callback: VimpClientBuiltinEvents[K]): voidon<K extends never>(event: K, callback: (data: VimpClientEvents[K]) => void): voidon(event: string, callback: (...args: Array<any>) => void): voidRegisters a handler for a built-in client event.