GIVE_PED_HASH_SCENARIO_PROP
Gives ped the prop object for the scenario type scenarioType with the conditional animation conditionalAnim, returning true on success.
Signature
BOOL GIVE_PED_HASH_SCENARIO_PROP(Ped ped, Object object, const char* conditionalAnim, Hash scenarioType, Hash p4, BOOL p5); // 0x2B02DB082258625F b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | object | Object |
| 3 | conditionalAnim | const char* |
| 4 | scenarioType | Hash |
| 5 | p4 | Hash |
| 6 | p5 | BOOL |
Facts
| 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.
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
-- ...
endconst 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) {
// ...
}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
);Related PED natives
- _GIVE_PED_SCENARIO_PROP
- _GIVE_PED_SCENARIO_PROP_DYNAMIC
- _GIVE_PED_HASH_COMMAND
- _REQUEST_PROP_SCENARIO_PED
- IS_PED_USING_SCENARIO_HASH
- GET_PED_RELATIONSHIP_GROUP_DEFAULT_HASH
- GET_PED_RELATIONSHIP_GROUP_HASH
- _APPLY_PED_META_PED_OUTFIT
- _CAN_PED_HEAR_TARGET_PED
- _CAN_PED_USE_SCENARIO_POINT
- _CREATE_META_PED_OUTFIT_PED
- _DOES_META_PED_OUTFIT_EXIST_FOR_PED_MODEL
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.