The RedM developer’s field guide
Know the native.
Build the world.
Engine functions, framework docs, and game assets.
One reference. From the first lookup to the last line.
knowledge base
Explore / RedM
Native reference
- PATHFINDBOOL
GET_VEHICLE_NODE_IS_SWITCHED_OFF
Description not yet documented
0x28533DBDDF7C2C97 - PATHFINDvoid
GET_VEHICLE_NODE_POSITION
Description not yet documented
0x8E8D72FF24DEE1FB - PATHFINDBOOL
IS_NAVMESH_LOADED_IN_AREA
``` Returns whether navmesh for the region is loaded. The region is a rectangular prism defined by it's top left deepest corner to it's bottom right shallowest corner. If you can re-word this so it makes more sense, please do. I'm horrible with words sometimes... ```
0xF813C7E63F9062A5 - PATHFINDBOOL
IS_POINT_ON_ROAD
``` Gets a value indicating whether the specified position is on a road. The vehicle parameter is not implemented (ignored). ```
0x125BF4ABFC536B09 - PATHFINDBOOL
IS_VEHICLE_NODE_ID_VALID
Returns true if the id is non zero.
0x5829A02AF4F0B3CB - PATHFINDBOOL
_NAVMESH_ACTIVATE_SWAP
Description not yet documented
0x7C334FF4D9215912 - PATHFINDBOOL
_NAVMESH_ASSIGN_NAVMESH_TO_VEHICLE
Description not yet documented
0x44026E3DB3CED602 - PATHFINDBOOL
_NAVMESH_CLEAR_REQUESTED_PATH
Called in scripts after finished with requested pathes. Immediately resets all values connected to the path handle except query status, which changes from 1 to 2 before eventually becoming fully invalidated to 0.
0x661BB1E1FF77742D - PATHFINDBOOL
_NAVMESH_DEACTIVATE_SWAP
Description not yet documented
0x527B97C203BB8606 - PATHFINDBOOL
_NAVMESH_DOES_SWAP_EXIST
Description not yet documented
0x495CFAB2924237C7 - PATHFINDBOOL
_NAVMESH_IS_SWAP_ACTIVE
Description not yet documented
0x5AC0944C156E5F44 - PATHFINDint
_NAVMESH_REQUESTED_PATH_NUM_WAYPOINTS
Returns the number of waypoints for a requested path (NAVMESH_REQUEST_PATH) if the query is completed (_NAVMESH_REQUESTED_QUERY_STATUS). For use with _NAVMESH_REQUESTED_PATH_WAYPOINT_BY_INDEX
0xD470725E0703D22F - PATHFINDVector3
_NAVMESH_REQUESTED_PATH_WAYPOINT_BY_INDEX
Returns a vector3 waypoint at the specified index for a path. Use _NAVMESH_REQUESTED_PATH_NUM_WAYPOINTS to get available indexes.
0x430F8319AE56C8A9 - PATHFINDBOOL
_NAVMESH_REQUESTED_PATH_WAYPOINTS_FOUND
Returns true if a path of waypoints was found. Waypoints can be retrieved with _NAVMESH_REQUESTED_PATH_NUM_WAYPOINTS and _NAVMESH_REQUESTED_PATH_WAYPOINT_BY_INDEX
0x8800776E410EB669 - PATHFINDint
_NAVMESH_REQUESTED_PATH_WAYPOINTS_TERRAIN
Returns a bit flag for seemingly terrain within the waypoints in the path. Checked against bit value 2 to match water in the path, seems to always contain at least 1 though regardless of location/ped.
0xF61CFEDEAB627BFA - PATHFINDint
_NAVMESH_REQUESTED_QUERY_STATUS
Returns eNavMeshQueryStatus enum eNavMeshQueryStatus { QS_NOT_FOUND, QS_COMPLETE, QS_PENDING }; It appears that the pending state of 2 is at least also used when cleaning up a request (_NAVMESH_CLEAR_REQUESTED_PATH) or if a request never completes. Eventually queries are invalidated and return 0. Old name: _NAVMESH_QUERY_STATUS
0x3A0F82F6EE2291C8 - PATHFINDint
NAVMESH_REQUEST_PATH
Starts a nav mesh query for a path between coordinates with a given ped and returns a handle to be validated by _NAVMESH_REQUESTED_QUERY_STATUS and then _NAVMESH_REQUESTED_PATH_WAYPOINTS_FOUND Only bit flag values used in scripts are 0, 23, and 29. 23 is used with dogs and horses. 29 with legendary animals.
0x348F211CA2404039 - PATHFINDvoid
REMOVE_NAVMESH_BLOCKING_OBJECT
Description not yet documented
0x46399A7895957C0E - PATHFINDvoid
_REMOVE_NAVMESH_BLOCKING_VOLUME
Description not yet documented
0x2C87C3E1C7B96EE2 - PATHFINDBOOL
REQUEST_PATH_NODES_IN_AREA_THIS_FRAME
Old name: REQUEST_PATHS_PREFER_ACCURATE_BOUNDINGSTRUCT
0x07FB139B592FA687 - PATHFINDvoid
RESET_ROADS_IN_VOLUME
Description not yet documented
0xD17672447692478E - PATHFINDvoid
SET_AMBIENT_PED_RANGE_MULTIPLIER_THIS_FRAME
Description not yet documented
0x0B919E1FB47CC4E0 - PATHFINDvoid
SET_IGNORE_NO_GPS_FLAG
nullsub, doesn't do anything
0x72751156E7678833 - PATHFINDvoid
SET_PED_PATHS_BACK_TO_ORIGINAL
``` NativeDB Added Parameter 7: Any p6 ```
0xE04B48F2CC926253 - PATHFINDvoid
SET_PED_PATHS_IN_AREA
``` NativeDB Added Parameter 8: Any p7 ```
0x34F060F4BF92E018 - PATHFINDvoid
SET_ROADS_BACK_TO_ORIGINAL
``` missing a last parameter int p6 ``` ``` NativeDB Added Parameter 7: Any p6 ```
0x1EE7063B80FFC77C - PATHFINDvoid
SET_ROADS_BACK_TO_ORIGINAL_IN_ANGLED_AREA
See [`IS_POINT_IN_ANGLED_AREA`](#\_0x2A70BAE8883E4C81) for the definition of an angled area. ``` NativeDB Added Parameter 8: Any p7 bool p7 - always 1 ```
0x0027501B9F3B407E - PATHFINDvoid
SET_ROADS_IN_ANGLED_AREA
unknown3 is related to `SEND_SCRIPT_WORLD_STATE_EVENT > CNetworkRoadNodeWorldStateData` in networked environments. See [`IS_POINT_IN_ANGLED_AREA`](#\_0x2A70BAE8883E4C81) for the definition of an angled area.
0x1A5AA1208AF5DB59 - PATHFINDvoid
SET_ROADS_IN_AREA
When this is set to false, all nodes in the area get disabled. `GET_VEHICLE_NODE_IS_SWITCHED_OFF` returns true afterwards. If it's true, `GET_VEHICLE_NODE_IS_SWITCHED_OFF` returns false.
0xBF1A602B5BA52FEE - PATHFINDvoid
SET_ROADS_IN_VOLUME
Description not yet documented
0xC1799FAFD2FDF52B - PATHFINDAny
_SIMULATED_ROUTE_CREATE
Description not yet documented
0xFD5BB35AAB83FD48 - PATHFINDvoid
_SIMULATED_ROUTE_DELETE
Description not yet documented
0x4907D0E4FB26EE65 - PATHFINDBOOL
_SIMULATED_ROUTE_EXISTS
Description not yet documented
0x65A8196B8D7F5E0B - PATHFINDfloat
SIMULATED_ROUTE_GET_ETA
Description not yet documented
0x2DD5F78D73B24172 - PATHFINDBOOL
SIMULATED_ROUTE_IS_LOADED
Description not yet documented
0x240915043CB799D7 - PATHFINDvoid
SIMULATED_ROUTE_TRAVEL_TO_POINT
Description not yet documented
0xA1A3DE1C215C7394
A living reference. Documentation coverage varies by native and source.