player.setSyncedMeta

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

This type of meta is accessible anywhere but can only be set on server-side.

Declaration

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

Usage

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

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

results matching ""

    No results matching ""