The Lab
DECORATOR native

_DECOR_SET_PLAYER_INDEX

returns BOOL3 paramsbuild 1207

Stores the player index value in the decorator propertyName on entity, returning true on success.

Signature

C
BOOL _DECOR_SET_PLAYER_INDEX(Entity entity, const char* propertyName, int value); // 0x4BDC83150D43772D b1207

Parameters

#NameType
1entityEntity
2propertyNameconst char*
3valueint

Facts

Facts about _DECOR_SET_PLAYER_INDEX
Name
_DECOR_SET_PLAYER_INDEX
Hash
0x4BDC83150D43772D
Namespace
Returns
BOOL
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result = Citizen.InvokeNative(0x4BDC83150D43772D, -- _DECOR_SET_PLAYER_INDEX
  PlayerPedId(), -- Entity entity
  "text", -- const char* propertyName
  0 -- int value
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0x4BDC83150D43772D", // _DECOR_SET_PLAYER_INDEX
  PlayerPedId(), // Entity entity
  "text", // const char* propertyName
  0, // int value
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x4BDC83150D43772D, // _DECOR_SET_PLAYER_INDEX
  API.PlayerPedId(), // Entity entity
  "text", // const char* propertyName
  0 // int value
);
All DECORATOR natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.