IS_VEHICLE_EXTRA_TURNED_ON
Signature
BOOL IS_VEHICLE_EXTRA_TURNED_ON(Vehicle vehicle, int extraId);Parameters
| Name | Type | Description |
|---|---|---|
vehicle | Vehicle | — |
extraId | int | — |
Returns BOOL
Usage
local retval = IsVehicleExtraTurnedOn(vehicle, extraId)
-- always works, by hash
local retval = Citizen.InvokeNative(0x42098b5, vehicle, extraId, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = IsVehicleExtraTurnedOn(vehicle, extraId);
// by hash
const retval = Citizen.invokeNative('0x42098b5', vehicle, extraId, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0x42098b5, vehicle, extraId);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.