Native referenceFiveM

IS_POSITION_OCCUPIED

0xADCDE75E1C60F32D MISC
FUNCTION SIGNATURE
BOOL IS_POSITION_OCCUPIED(float x, float y, float z, float range, BOOL p4, BOOL checkVehicles, BOOL checkPeds, BOOL p7, BOOL p8, Entity ignoreEntity, BOOL p10);
Property Value
Native Name IS_POSITION_OCCUPIED
Hash 0xADCDE75E1C60F32D
Return Type BOOL
Parameters x (float), y (float), z (float), range (float), p4 (BOOL), checkVehicles (BOOL), checkPeds (BOOL), p7 (BOOL), p8 (BOOL), ignoreEntity (Entity), p10 (BOOL)

Description: The BOOL parameters that are documented have not been confirmed. They are just documented from what I've found during testing. They may not work as expected in all cases.

Parameters

  • x (float) — X coordinate of the position to check.
  • y (float) — Y coordinate of the position to check.
  • z (float) — Z coordinate of the position to check.
  • range (float) — The range, seems to not be very accurate during testing.
  • p4 (BOOL) — Unknown, when set to true it seems to always return true no matter what I try.
  • checkVehicles (BOOL) — Check for any vehicles in that area.
  • checkPeds (BOOL) — Check for any peds in that area.
  • p7 (BOOL) — Unknown.
  • p8 (BOOL) — Unknown.
  • ignoreEntity (Entity) — This entity will be ignored if it's in the area. Set to 0 if you don't want to exclude any entities.
  • p10 (BOOL) — Unknown.
Back to MISC