WAYPOINT_RECORDING_GET_NUM_POINTS
Hash
0x5343532C01A07234Runtime name
WaypointRecordingGetNumPointsNamespaceTASK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x5343532C01A07234Signature
BOOL WAYPOINT_RECORDING_GET_NUM_POINTS(const char* waypointRecording, int* points);Parameters
| Name | Type | Description |
|---|---|---|
waypointRecording | const char* | — |
points | int* | — |
Returns BOOL
Usage
local retval, points = WaypointRecordingGetNumPoints(waypointRecording, points)
-- always works, by hash
local retval, points = Citizen.InvokeNative(0x5343532C01A07234, waypointRecording, Citizen.PointerValueIntInitialized(points), Citizen.ReturnResultAnyway())JavaScript and C#
const [retval, points] = WaypointRecordingGetNumPoints(waypointRecording, points);
// by hash
const [retval, points] = Citizen.invokeNative('0x5343532C01A07234', waypointRecording, Citizen.pointerValueIntInitialized(points), Citizen.returnResultAnyway());var points = new OutputArgument();
bool retval = Function.Call<bool>((Hash)0x5343532C01A07234, waypointRecording, points);
// points.GetResult<int>()- The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.