The Lab
PED native

GIVE_PED_HASH_SCENARIO_PROP

returns BOOL6 paramsbuild 1207

Gives ped the prop object for the scenario type scenarioType with the conditional animation conditionalAnim, returning true on success.

Signature

C
BOOL GIVE_PED_HASH_SCENARIO_PROP(Ped ped, Object object, const char* conditionalAnim, Hash scenarioType, Hash p4, BOOL p5); // 0x2B02DB082258625F b1207

Parameters

#NameType
1pedPed
2objectObject
3conditionalAnimconst char*
4scenarioTypeHash
5p4Hash
6p5BOOL

Facts

Facts about GIVE_PED_HASH_SCENARIO_PROP
Name
GIVE_PED_HASH_SCENARIO_PROP
Hash
0x2B02DB082258625F
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(0x2B02DB082258625F, -- GIVE_PED_HASH_SCENARIO_PROP
  PlayerPedId(), -- Ped ped
  0, -- Object object
  "text", -- const char* conditionalAnim
  GetHashKey("name"), -- Hash scenarioType
  GetHashKey("name"), -- Hash p4
  false -- BOOL p5
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0x2B02DB082258625F", // GIVE_PED_HASH_SCENARIO_PROP
  PlayerPedId(), // Ped ped
  0, // Object object
  "text", // const char* conditionalAnim
  GetHashKey("name"), // Hash scenarioType
  GetHashKey("name"), // Hash p4
  false, // BOOL p5
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x2B02DB082258625F, // GIVE_PED_HASH_SCENARIO_PROP
  API.PlayerPedId(), // Ped ped
  0, // Object object
  "text", // const char* conditionalAnim
  (uint)API.GetHashKey("name"), // Hash scenarioType
  (uint)API.GetHashKey("name"), // Hash p4
  false // BOOL p5
);
All PED natives

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