getStreamSyncedMeta
Used to store cross-resource accessible information.
The player on client-side is only updated if they are in streaming range of another player.
This type of meta is accessible anywhere but can only be set on server-side.
Declaration
vehicle.getStreamSyncedMeta(key: string): unknown;
Usage
const result = vehicle.getStreamSyncedMeta('myData');
Real World Example
const data = alt.Player.local.vehicle.getStreamSyncedMeta('myData');
if (!data) {
// Does does not exist.
return;
}
console.log(data);
These examples assume you have vehicle created or available on client-side