Skip to main content

Vehicle::setLiveryTexture

Not available on SYNC MP yet

This member is part of the RAGE:MP API but SYNC MP does not implement it yet (Client-side JavaScript). Calling it does nothing or throws.

Client-side function

JavaScript​

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');