setGamestateDataBase64

Used to apply base64 gamestate to a vehicle.

Note that each GTA:V update will break this value and potentially crash any player who sees this in their game.

It's highly recommended that if you store this value that you wipe it with each update for alt:V or GTA:V itself.

Declaration

vehicle.setGamestateDataBase64(data: string): void;

Usage

vehicle.setGamestateDataBase64(someBase64Data);

Real World Example

Cannot post base64 examples but you should use getGamestateDataBase64 to apply it with this function.

const vehicle = new alt.Vehicle('elegy', 0, 0, 0, 0, 0, 0);
vehicle.setGamestateDataBase64(someBase64Data);

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

results matching ""

    No results matching ""