Vehicle::setLiveryTexture

From RAGE Multiplayer Wiki

Client-Side
Function

 JavaScript



JavaScript Syntax

Set a custom texture livery to the given vehicle.

Required Params

  • textureDict: string
  • textureName: string

Return Value

  • void void

Syntax

vehicle.setLiveryTexture(textureDict, textureName);

Example

Client-Side
const vehicle = mp.vehicles.atRemoteId(0);
if (!vehicle || !mp.vehicles.exists(vehicle)) return;
/* You'd probably have to load the texture dict prior. */
vehicle.setLiveryTexture('livery_dict_name', 'texture_name');


See also