# CFX::GIVE_WEAPON_COMPONENT_TO_PED

- **Hash:** `0x3E1E286D`
- **Namespace:** CFX
- **Runtime name (Lua/JS):** `GiveWeaponComponentToPed`
- **Side:** server (Cfx runtime native)
- **Name status:** official
- **Documentation:** described
- **URL:** https://natives.borderlinerp.com/natives/CFX/GIVE_WEAPON_COMPONENT_TO_PED

## Signature

```c
void GIVE_WEAPON_COMPONENT_TO_PED(Ped ped, Hash weaponHash, Hash componentHash);
```

## Parameters

- `ped` (`Ped`)
- `weaponHash` (`Hash`)
- `componentHash` (`Hash`)

## Returns

`void`

## Description

*Source: Cfx.re native reference*

GIVE_WEAPON_COMPONENT_TO_PED

**This is the server-side RPC native equivalent of the client native [GIVE_WEAPON_COMPONENT_TO_PED](?\_0xD966D51AA5B28BB9).**

## Usage

### Lua

```lua
GiveWeaponComponentToPed(ped, weaponHash, componentHash)

-- always available, by hash
Citizen.InvokeNative(0x3e1e286d, ped, weaponHash, componentHash)
```

### JavaScript

```js
GiveWeaponComponentToPed(ped, weaponHash, componentHash);

// by hash
Citizen.invokeNative('0x3e1e286d', ped, weaponHash, componentHash);
```

### C#

```csharp
Function.Call((Hash)0x3e1e286d, ped, weaponHash, componentHash);
```

- 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` ``.

*Sources: Cfx.re native reference.*
