RedM Natives

GET_VEHICLE_LIVERY

Hash0xEC82A51D
Runtime nameGetVehicleLivery
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

int GET_VEHICLE_LIVERY(Vehicle vehicle);

Parameters

NameTypeDescription
vehicleVehicle—

Returns int

Usage

Lua
local retval = GetVehicleLivery(vehicle)

-- always works, by hash
local retval = Citizen.InvokeNative(0xec82a51d, vehicle, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetVehicleLivery(vehicle);

// by hash
const retval = Citizen.invokeNative('0xec82a51d', vehicle, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0xec82a51d, vehicle);

Sources

Cfx.re native reference

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.