The Lab
TASK native

CREATE_SCENARIO_POINT_HASH

returns int8 paramsbuild 1207

Creates a scenario point of type scenarioHash at the given position and heading and returns its id.

Signature

C
int CREATE_SCENARIO_POINT_HASH(Hash scenarioHash, float x, float y, float z, float heading, Any p5, Any p6, BOOL p7); // 0x94B745CE41DB58A1 b1207

Parameters

#NameType
1scenarioHashHash
2xfloat
3yfloat
4zfloat
5headingfloat
6p5Any
7p6Any
8p7BOOL

Facts

Facts about CREATE_SCENARIO_POINT_HASH
Name
CREATE_SCENARIO_POINT_HASH
Hash
0x94B745CE41DB58A1
Namespace
Returns
int
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(0x94B745CE41DB58A1, -- CREATE_SCENARIO_POINT_HASH
  GetHashKey("name"), -- Hash scenarioHash
  0.0, -- float x
  0.0, -- float y
  0.0, -- float z
  0.0, -- float heading
  0, -- Any p5
  0, -- Any p6
  false, -- BOOL p7
  Citizen.ResultAsInteger()
)
print(result)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const result = Citizen.invokeNative("0x94B745CE41DB58A1", // CREATE_SCENARIO_POINT_HASH
  GetHashKey("name"), // Hash scenarioHash
  0.0, // float x
  0.0, // float y
  0.0, // float z
  0.0, // float heading
  0, // Any p5
  0, // Any p6
  false, // BOOL p7
  Citizen.resultAsInteger()
);
console.log(result)
C#
int result = Function.Call<int>((Hash)0x94B745CE41DB58A1, // CREATE_SCENARIO_POINT_HASH
  (uint)API.GetHashKey("name"), // Hash scenarioHash
  0.0f, // float x
  0.0f, // float y
  0.0f, // float z
  0.0f, // float heading
  0, // Any p5
  0, // Any p6
  false // BOOL p7
);
All TASK natives

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