# SCRIPT::AWARDS_GET_RESULT_ITEM

- **Hash:** `0xAC8FAB22A914AE34`
- **Namespace:** SCRIPT
- **Runtime name (Lua/JS):** `AwardsGetResultItem`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** named only
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/SCRIPT/AWARDS_GET_RESULT_ITEM

## Signature

```c
BOOL AWARDS_GET_RESULT_ITEM(Any* rpcGuid, Hash awardHash, int itemIndex, Any* outResultItem);
```

## Parameters

- `rpcGuid` (`Any*`)
- `awardHash` (`Hash`)
- `itemIndex` (`int`)
- `outResultItem` (`Any*`)

## Returns

`BOOL`

## Usage

### Lua

```lua
local retval, rpcGuid, outResultItem = AwardsGetResultItem(awardHash, itemIndex)

-- always available, by hash
local retval, rpcGuid, outResultItem = Citizen.InvokeNative(0xAC8FAB22A914AE34, Citizen.PointerValueInt(), awardHash, itemIndex, Citizen.PointerValueInt(), Citizen.ReturnResultAnyway())
```

### JavaScript

```js
const [retval, rpcGuid, outResultItem] = AwardsGetResultItem(awardHash, itemIndex);

// by hash
const [retval, rpcGuid, outResultItem] = Citizen.invokeNative('0xAC8FAB22A914AE34', Citizen.pointerValueInt(), awardHash, itemIndex, Citizen.pointerValueInt(), Citizen.returnResultAnyway());
```

### C#

```csharp
var rpcGuid = new OutputArgument();
var outResultItem = new OutputArgument();
bool retval = Function.Call<bool>((Hash)0xAC8FAB22A914AE34, rpcGuid, awardHash, itemIndex, outResultItem);
// rpcGuid.GetResult<int>()
// outResultItem.GetResult<int>()
```

- Hash parameters: the named function also accepts a string and hashes it for you; `Citizen.InvokeNative` needs the number — pass `joaat("name")` or a backtick literal like `` `name` ``.
- Pointer (out) arguments are not passed in Lua/JS: their values are returned after the result, in order.
- `Any*` arguments are often structs. Build them with a DataView buffer and pass it with `:Buffer()` — see the examples and notes below.

## See also

- [SCRIPT::_LOOT_GET_RESULT_ITEM](https://natives.borderlinerp.com/natives/SCRIPT/_LOOT_GET_RESULT_ITEM.md)

*Sources: alloc8or RDR3 NativeDB.*
