Gameplay::isProjectileTypeWithinDistance
Client-Side Function
JavaScript Syntax
Checks if a projectile object of the specified type is in a given area
Required Params
- x: Float
- y: Float
- z: Float
- weaponType: number Weapon hash can be found here -> Weapons
- distance: Float
- isPlayer: boolean
Return value
- number
Syntax
mp.game.gameplay.isProjectileTypeWithinDistance(x, y, z, weaponType, distance, isPlayer);
Example
//todo