Gameplay::getCoordsOfProjectileTypeWithinDistance

From RAGE Multiplayer Wiki
Revision as of 15:53, 29 April 2024 by Shr0x (talk | contribs) (Created page with "{{ClientsideJsFunction}} {{JSContainer| Checks that a projectile object of the specified type is within distance ===Required Params=== *'''ped:''' {{RageType|number}} *'''weaponHash:''' {{RageType|number}} *'''radius:''' {{RageType|Float}} *'''isPlayer:''' {{RageType|boolean}} ===Return value=== *'''{ entity: number; } ''' {{RageType|Object}} ==Syntax== <syntaxhighlight lang="javascript"> mp.game.gameplay.getCoordsOfProjectileTypeWithinDistance(ped, weaponHash, radius...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Client-Side
Function

 JavaScript



JavaScript Syntax

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


See also