SET_VEHICLE_FLAG
This native is a setter for GET_VEHICLE_HAS_FLAG.
Signature
bool SET_VEHICLE_FLAG(Vehicle vehicle, int flagIndex, bool value);Parameters
| Name | Type | Description |
|---|---|---|
vehicle | Vehicle | The vehicle to set flag for. |
flagIndex | int | Flag index. |
value | bool |
|
Returns bool
Description
Usage
local retval = SetVehicleFlag(vehicle, flagIndex, value)
-- always works, by hash
local retval = Citizen.InvokeNative(0x63ae1a34, vehicle, flagIndex, value, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = SetVehicleFlag(vehicle, flagIndex, value);
// by hash
const retval = Citizen.invokeNative('0x63ae1a34', vehicle, flagIndex, value, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0x63ae1a34, vehicle, flagIndex, value);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.