CREATE_CHECKPOINT_WITH_NAMEHASH
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
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 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | typeHash | Hash |
| 2 | posX1 | float |
| 3 | posY1 | float |
| 4 | posZ1 | float |
| 5 | posX2 | float |
| 6 | posY2 | float |
| 7 | posZ2 | float |
| 8 | radius | float |
| 9 | red | int |
| 10 | green | int |
| 11 | blue | int |
| 12 | alpha | int |
| 13 | reserved | int |
Facts
| 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.
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)// 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)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
);Related GRAPHICS natives
- CREATE_TRACKED_POINT
- _ADD_BLOOD_POOLS_FOR_PED_WITH_PARAMS
- _ADD_ENTITY_TO_ENTITY_MASK_WITH_INTENSITY
- _CREATE_SWATCH_TEXTURE_DICT
- _DOES_CHECKPOINT_HAVE_FX
- BEGIN_CREATE_LOW_QUALITY_COPY_OF_PHOTO
- DELETE_CHECKPOINT
- DRAW_LIGHT_WITH_RANGE
- GET_STATUS_OF_CREATE_LOW_QUALITY_COPY_OF_PHOTO
- QUEUE_OPERATION_TO_CREATE_SORTED_LIST_OF_PHOTOS
- SET_CHECKPOINT_RGBA
- SET_CHECKPOINT_RGBA2
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.