SET_VEHICLE_FLAG
This native is a setter for [`GET_VEHICLE_HAS_FLAG`](#\_0xD85C9F57).
CFX
Signature
lua
SetVehicleFlag(GetVehiclePedIsIn(PlayerPedId(), false), 0, true)
-- returns boolParameters
| Name | Type | Description |
|---|---|---|
| Vehicle | The vehicle to set flag for. | |
| int | Flag index. | |
| bool | `true` to enable the flag, `false` to disable it. |
Usage
lua
SetVehicleFlag(GetVehiclePedIsIn(PlayerPedId(), false), 0, true)Generated from the native name, hash, and parameter list. Add a real example.
Details
- Hash
- API set
- Source
- cfx
Source: cfx
