RedM Natives

SET_DOOR_ALLOWED_TO_BE_BROKEN_OFF

Old name: _SET_VEHICLE_DOOR_CAN_BREAK

Hash0x081FB9D6422F804C
Runtime nameSetDoorAllowedToBeBrokenOff
NamespaceVEHICLE
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x2FA133A4A9D37ED8

Signature

void SET_DOOR_ALLOWED_TO_BE_BROKEN_OFF(Vehicle vehicle, int doorId, BOOL isBreakable);

Parameters

NameTypeDescription
vehicleVehicle—
doorIdint—
isBreakableBOOL—

Returns void

Description

doorId: see SET_VEHICLE_DOOR_SHUT

Old name: _SET_VEHICLE_DOOR_CAN_BREAK

Usage

Lua
SetDoorAllowedToBeBrokenOff(vehicle, doorId, isBreakable)

-- always works, by hash
Citizen.InvokeNative(0x081FB9D6422F804C, vehicle, doorId, isBreakable)
JavaScript and C#
JavaScript
SetDoorAllowedToBeBrokenOff(vehicle, doorId, isBreakable);

// by hash
Citizen.invokeNative('0x081FB9D6422F804C', vehicle, doorId, isBreakable);
C#
Function.Call((Hash)0x081FB9D6422F804C, vehicle, doorId, isBreakable);

Enums and flags

Sources

alloc8or RDR3 NativeDB

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