Skip to content

isVehicleOnGround sometimes returns false incorrectly #471

@ArranTuna

Description

@ArranTuna

Describe the bug
isVehicleOnGround returns false on some vehicles upside down and isVehicleOnGround always returns false for Monsters.

Vehicle IDs: 444, 556, 557

isVehicleOnGround(getPedOccupiedVehicle(localPlayer)) always return false

To Reproduce

  • Spawn a monster (444, 556 or 557)
  • crun isVehicleOnGround(getPedOccupiedVehicle(localPlayer))

Expected behavior
Should return true

Screenshots
image

MTA Client (please complete the following information):
unstated

MTA Server (please complete the following information):
unstated

Additional context
From mantis 7880 and mantis 8672

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions