# WEAPON::SET_PLAYER_PED_QUICK_SWAP_WEAPON_BY_GUID

- **Hash:** `0xEC1F85DA51D3D6C4`
- **Namespace:** WEAPON
- **Runtime name (Lua/JS):** `SetPlayerPedQuickSwapWeaponByGuid`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** named only
- **Since game build:** 1232
- **URL:** https://natives.borderlinerp.com/natives/WEAPON/SET_PLAYER_PED_QUICK_SWAP_WEAPON_BY_GUID

## Signature

```c
void SET_PLAYER_PED_QUICK_SWAP_WEAPON_BY_GUID(Ped ped, Any* guidPrimary, Any* guidSecondary);
```

## Parameters

- `ped` (`Ped`)
- `guidPrimary` (`Any*`)
- `guidSecondary` (`Any*`)

## Returns

`void`

## Usage

### Lua

```lua
local guidPrimary, guidSecondary = SetPlayerPedQuickSwapWeaponByGuid(ped)

-- always available, by hash
local guidPrimary, guidSecondary = Citizen.InvokeNative(0xEC1F85DA51D3D6C4, ped, Citizen.PointerValueInt(), Citizen.PointerValueInt())
```

### JavaScript

```js
const [guidPrimary, guidSecondary] = SetPlayerPedQuickSwapWeaponByGuid(ped);

// by hash
const [guidPrimary, guidSecondary] = Citizen.invokeNative('0xEC1F85DA51D3D6C4', ped, Citizen.pointerValueInt(), Citizen.pointerValueInt());
```

### C#

```csharp
var guidPrimary = new OutputArgument();
var guidSecondary = new OutputArgument();
Function.Call((Hash)0xEC1F85DA51D3D6C4, ped, guidPrimary, guidSecondary);
// guidPrimary.GetResult<int>()
// guidSecondary.GetResult<int>()
```

- 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

- [WEAPON::_GET_PLAYER_PED_QUICK_SWAP_WEAPON_BY_GUID](https://natives.borderlinerp.com/natives/WEAPON/_GET_PLAYER_PED_QUICK_SWAP_WEAPON_BY_GUID.md) — Outputs cached guids

*Sources: alloc8or RDR3 NativeDB.*
