BreakDoorWithThermalCharge
Plays the thermal charge scene on the given door, automatically finds all the data it needs, and moves the player to the start coordinates
Argument | Data Type | Needed | Default | Description |
---|---|---|---|---|
door | object | - | ||
bagComponent | number | 45 | Of note that the native replaces the bag, you will have to give him the player's initial bag | |
duration | number | 3000 | Total duration of lock stripping in ms |
Dont need to be called every frame
Example
local coords = GetEntityCoords(PlayerPedId())
local door = GetClosestObjectOfType(coords, 4.0, `hei_v_ilev_bk_gate_pris`)
if door > 0 then
BreakDoorWithThermalCharge(door)
end
Last update: December 16, 2022
Created: October 31, 2022
Created: October 31, 2022