setMeta

Used to store cross-resource accessible information. This functionality stores an object on a player that can than be accessed with getMeta

This type of meta is only accessible where it is created.

If it is created on the client-side it is only accessible on the client-side.

If it's created on the server-side it is only accessible on the server-side.

Declaration

vehicle.setMeta(key: string, value: any): void;

Usage

vehicle.setMeta('myData', 'hello world');

Real World Usage

alt.Player.local.vehicle.setMeta('myData', 'hello world');

These examples assume you have vehicle created or available on client-side

results matching ""

    No results matching ""