Native referenceRedMclient

_GET_PROJECTILE_IN_VOLUME

0x74C8000FDD1BB222 WEAPON
FUNCTION SIGNATURE
Any _GET_PROJECTILE_IN_VOLUME(Volume volume, Any* outProjectile);
Property Value
Native Name _GET_PROJECTILE_IN_VOLUME
Hash 0x74C8000FDD1BB222
Return Type Any
Build 1207
API Set client
Parameters volume (Volume), outProjectile (Any*)

Description: Finds a projectile entity inside the given Volume and writes its handle to the out pointer.

Parameters:

  • volume: Volume to search in.
  • outEntity: [out] Receives the found projectile entity handle.

Returns:

  • BOOL: true if a projectile was found and written; false otherwise.

Notes:

  • Returns the first matching projectile the engine reports for that volume (order is unspecified).
  • Not limited to ignited projectiles (see 0x74C8000FDD1BB111 for the ignited-only variant).
  • The returned entity is typically an OBJECT; validate with ENTITY::DOES_ENTITY_EXIST.
  • Lua example: https://pastebin.com/ZgaUSEEP

_GET_PO*

Usage

Lua (Direct):

local result = GetProjectileInVolume(volume, outProjectile)

Lua (Hash):

local result = Citizen.InvokeNative(0x74C8000FDD1BB222, volume, outProjectile)
Back to WEAPON