Skip to content

Commit

Permalink
tweak: fix code example
Browse files Browse the repository at this point in the history
  • Loading branch information
AvarianKnight authored Jan 23, 2025
1 parent d9564db commit b8413dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion TASK/TaskSharkCircleCoord.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ NativeDB Introduced: v3407
## Examples
```lua
CreateThread(function()
local sharkModel = GetHashKey("a_c_sharktiger")
RequestModel(sharkModel)
while not HasModelLoaded(sharkModel) do
Wait(0)
end
local sharkModel = GetHashKey("a_c_sharktiger")
local coords = GetEntityCoords(PlayerPedId(), false)
local shark = CreatePed(28, sharkModel, coords.x, coords.y, coords.z, 0.0, true, true)
Expand Down
4 changes: 3 additions & 1 deletion VEHICLE/SetDisableExplodeFromBodyDamageOnCollision.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ aliases: ["0x26E13D440E7F6064"]
void SET_DISABLE_EXPLODE_FROM_BODY_DAMAGE_ON_COLLISION(Vehicle vehicle, cs_type(float) BOOL disableExplode);
```
Prevents a vehicle from exploding upon sustaining body damage from physical collisions. Only works for planes.
This only works for planes.
Prevents a vehicle from exploding upon sustaining body damage from physical collisions.
For helicopters, you might want to check [`SET_DISABLE_HELI_EXPLODE_FROM_BODY_DAMAGE`](#_0xEDBC8405B3895CC9) instead.
Expand Down

0 comments on commit b8413dd

Please sign in to comment.