Skip to main content

Gameplay::getCoordsOfProjectileTypeWithinDistance

Client-side function

JavaScript​

Checks that a projectile object of the specified type is within distance

Required Params​

  • ped: number
  • weaponHash: number
  • radius: Float
  • isPlayer: boolean

Return value​

  • { entity: number; } Object

Syntax​

mp.game.gameplay.getCoordsOfProjectileTypeWithinDistance(ped, weaponHash, radius, isPlayer);

Example​

//todo