The Lab
GRAPHICS native

CREATE_CHECKPOINT_WITH_NAMEHASH

returns int13 paramsbuild 1207

Creates a checkpoint of type typeHash between the two positions with the given radius and color, and returns its handle.

Remove it with DELETE_CHECKPOINT.

Signature

C
int CREATE_CHECKPOINT_WITH_NAMEHASH(Hash typeHash, float posX1, float posY1, float posZ1, float posX2, float posY2, float posZ2, float radius, int red, int green, int blue, int alpha, int reserved); // 0x175668836B44CBB0 b1207

Parameters

#NameType
1typeHashHash
2posX1float
3posY1float
4posZ1float
5posX2float
6posY2float
7posZ2float
8radiusfloat
9redint
10greenint
11blueint
12alphaint
13reservedint

Facts

Facts about CREATE_CHECKPOINT_WITH_NAMEHASH
Name
CREATE_CHECKPOINT_WITH_NAMEHASH
Hash
0x175668836B44CBB0
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(0x175668836B44CBB0, -- CREATE_CHECKPOINT_WITH_NAMEHASH
  GetHashKey("name"), -- Hash typeHash
  0.0, -- float posX1
  0.0, -- float posY1
  0.0, -- float posZ1
  0.0, -- float posX2
  0.0, -- float posY2
  0.0, -- float posZ2
  0.0, -- float radius
  0, -- int red
  0, -- int green
  0, -- int blue
  0, -- int alpha
  0, -- int reserved
  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("0x175668836B44CBB0", // CREATE_CHECKPOINT_WITH_NAMEHASH
  GetHashKey("name"), // Hash typeHash
  0.0, // float posX1
  0.0, // float posY1
  0.0, // float posZ1
  0.0, // float posX2
  0.0, // float posY2
  0.0, // float posZ2
  0.0, // float radius
  0, // int red
  0, // int green
  0, // int blue
  0, // int alpha
  0, // int reserved
  Citizen.resultAsInteger()
);
console.log(result)
C#
int result = Function.Call<int>((Hash)0x175668836B44CBB0, // CREATE_CHECKPOINT_WITH_NAMEHASH
  (uint)API.GetHashKey("name"), // Hash typeHash
  0.0f, // float posX1
  0.0f, // float posY1
  0.0f, // float posZ1
  0.0f, // float posX2
  0.0f, // float posY2
  0.0f, // float posZ2
  0.0f, // float radius
  0, // int red
  0, // int green
  0, // int blue
  0, // int alpha
  0 // int reserved
);
All GRAPHICS natives

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