# DECORATOR::_DECOR_SET_PLAYER_INDEX

- **Hash:** `0x4BDC83150D43772D`
- **Namespace:** DECORATOR
- **Runtime name (Lua/JS):** `DecorSetPlayerIndex`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/DECORATOR/_DECOR_SET_PLAYER_INDEX

## Signature

```c
BOOL _DECOR_SET_PLAYER_INDEX(Entity entity, const char* propertyName, int value);
```

## Parameters

- `entity` (`Entity`)
- `propertyName` (`const char*`)
- `value` (`int`)

## Returns

`BOOL`

## Description

*Source: VORPCORE RDR3natives*

Old name: _DECOR_SET_UINT8

## Usage

### Lua

```lua
local retval = DecorSetPlayerIndex(entity, propertyName, value)

-- always available, by hash
local retval = Citizen.InvokeNative(0x4BDC83150D43772D, entity, propertyName, value, Citizen.ReturnResultAnyway())
```

### JavaScript

```js
const retval = DecorSetPlayerIndex(entity, propertyName, value);

// by hash
const retval = Citizen.invokeNative('0x4BDC83150D43772D', entity, propertyName, value, Citizen.returnResultAnyway());
```

### C#

```csharp
bool retval = Function.Call<bool>((Hash)0x4BDC83150D43772D, entity, propertyName, value);
```

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

*Sources: alloc8or RDR3 NativeDB, VORPCORE RDR3natives.*
