RedM Index logoRedM Index
NativesHashesClothesBlipsPropsItem Tool
Sign inGet started

Reference

  • Natives
  • Hashes
  • Clothes
  • Blips
  • Props

Namespace

  1. Reference
  2. Natives
  3. SET_VEHICLE_FLAG

SET_VEHICLE_FLAG

This native is a setter for [`GET_VEHICLE_HAS_FLAG`](#\_0xD85C9F57).

CFX

Signature

lua
SetVehicleFlag(GetVehiclePedIsIn(PlayerPedId(), false), 0, true)
-- returns bool

Parameters

NameTypeDescription
VehicleThe vehicle to set flag for.
intFlag 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

On this page

  • Signature
  • Parameters
  • Usage
  • Details