CREATE_SCENARIO_POINT_HASH_ATTACHED_TO_ENTITY
Creates a scenario point of type scenarioHash attached to entity at the given offset and returns its id.
Signature
int CREATE_SCENARIO_POINT_HASH_ATTACHED_TO_ENTITY(Entity entity, Hash scenarioHash, float x, float y, float z, float heading, Any p6, Any p7, BOOL p8); // 0x794AB1379A74064D b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | entity | Entity |
| 2 | scenarioHash | Hash |
| 3 | x | float |
| 4 | y | float |
| 5 | z | float |
| 6 | heading | float |
| 7 | p6 | Any |
| 8 | p7 | Any |
| 9 | p8 | BOOL |
Facts
| Name | CREATE_SCENARIO_POINT_HASH_ATTACHED_TO_ENTITY |
|---|---|
| Hash | 0x794AB1379A74064D |
| Namespace | |
| Returns | int |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0x794AB1379A74064D, -- CREATE_SCENARIO_POINT_HASH_ATTACHED_TO_ENTITY
PlayerPedId(), -- Entity entity
GetHashKey("name"), -- Hash scenarioHash
0.0, -- float x
0.0, -- float y
0.0, -- float z
0.0, -- float heading
0, -- Any p6
0, -- Any p7
false, -- BOOL p8
Citizen.ResultAsInteger()
)
print(result)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const result = Citizen.invokeNative("0x794AB1379A74064D", // CREATE_SCENARIO_POINT_HASH_ATTACHED_TO_ENTITY
PlayerPedId(), // Entity entity
GetHashKey("name"), // Hash scenarioHash
0.0, // float x
0.0, // float y
0.0, // float z
0.0, // float heading
0, // Any p6
0, // Any p7
false, // BOOL p8
Citizen.resultAsInteger()
);
console.log(result)int result = Function.Call<int>((Hash)0x794AB1379A74064D, // CREATE_SCENARIO_POINT_HASH_ATTACHED_TO_ENTITY
API.PlayerPedId(), // Entity entity
(uint)API.GetHashKey("name"), // Hash scenarioHash
0.0f, // float x
0.0f, // float y
0.0f, // float z
0.0f, // float heading
0, // Any p6
0, // Any p7
false // BOOL p8
);Related TASK natives
- CREATE_SCENARIO_POINT_HASH
- _GET_SCENARIO_POINT_ENTITY
- TASK_GO_STRAIGHT_TO_COORD_RELATIVE_TO_ENTITY
- TASK_GO_TO_ENTITY_WHILE_AIMING_AT_ENTITY
- TASK_GO_TO_ENTITY_WHILE_AIMING_AT_ENTITY_USING_COMBAT_STYLE
- _ADD_COVER_POINT_FOR_ENTITY
- _DELETE_SCENARIO_POINT
- _DOES_SCENARIO_GROUP_EXIST_HASH
- _DOES_SCENARIO_POINT_HAVE_PROPS
- _GET_PED_USING_SCENARIO_POINT
- _GET_SCENARIO_POINT_COORDS
- _GET_SCENARIO_POINT_HEADING
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.