{"hash":"0x74C8000FDD1BB222","ns":"WEAPON","name":"_GET_PROJECTILE_IN_VOLUME","slug":"_GET_PROJECTILE_IN_VOLUME","official":false,"named":true,"luaName":"GetProjectileInVolume","game":"rdr3","apiset":"client","returnType":"BOOL","params":[{"name":"volume","type":"Volume"},{"name":"outEntity","type":"Entity*"}],"summary":"Finds a projectile entity inside the given Volume and writes its handle to the out pointer.","descriptions":[{"source":"alloc8or","format":"text","body":"Finds a projectile entity inside the given Volume and writes its handle to the out pointer.\n\nParameters:\n- volume: Volume to search in.\n- outEntity: [out] Receives the found projectile entity handle.\n\nReturns:\n- BOOL: true if a projectile was found and written; false otherwise.\n\nNotes:\n- Returns the first matching projectile the engine reports for that volume (order is unspecified).\n- Not limited to ignited projectiles (see 0x74C8000FDD1BB111 for the ignited-only variant).\n- The returned entity is typically an OBJECT; validate with ENTITY::DOES_ENTITY_EXIST.\n- Lua example: https://pastebin.com/ZgaUSEEP \n\n_GET_PO*"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/WEAPON/_GET_PROJECTILE_IN_VOLUME","markdownUrl":"https://natives.borderlinerp.com/natives/WEAPON/_GET_PROJECTILE_IN_VOLUME.md","snippets":{"lua":"local retval, outEntity = GetProjectileInVolume(volume, outEntity)","luaInvoke":"local retval, outEntity = Citizen.InvokeNative(0x74C8000FDD1BB222, volume, Citizen.PointerValueIntInitialized(outEntity), Citizen.ReturnResultAnyway())","js":"const [retval, outEntity] = GetProjectileInVolume(volume, outEntity);","jsInvoke":"const [retval, outEntity] = Citizen.invokeNative('0x74C8000FDD1BB222', volume, Citizen.pointerValueIntInitialized(outEntity), Citizen.returnResultAnyway());","csharp":"var outEntity = new OutputArgument();\nbool retval = Function.Call<bool>((Hash)0x74C8000FDD1BB222, volume, outEntity);\n// outEntity.GetResult<int>()","notes":["The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.","The name is a community guess and may change. If the named call is missing in your client build, use `InvokeNative` with the hash — it always works."]}}