Native referenceFiveM

GET_VEHICLE_NODE_PROPERTIES

0x0568566ACBB5DEDC PATHFIND
FUNCTION SIGNATURE
BOOL GET_VEHICLE_NODE_PROPERTIES(float x, float y, float z, int* density, int* flags);
Property Value
Native Name GET_VEHICLE_NODE_PROPERTIES
Hash 0x0568566ACBB5DEDC
Return Type BOOL
Parameters x (float), y (float), z (float), density (int*), flags (int*)

Description: Gets the density and flags of the closest node to the specified position.
Density is a value between 0 and 15, indicating how busy the road is.

enum eVehicleNodeProperties {
	OFF_ROAD = 1 << 0,
	ON_PLAYERS_ROAD =  1 << 1,
	NO_BIG_VEHICLES = 1 << 2,
	SWITCHED_OFF = 1 << 3,
	TUNNEL_OR_INTERIOR = 1 << 4,
	LEADS_TO_DEAD_END = 1 << 5,
	HIGHWAY = 1 << 6,
	JUNCTION = 1 << 7,
	TRAFFIC_LIGHT = 1 << 8,
	GIVE_WAY = 1 << 9,
	WATER = 1 << 10,
}

Parameters

  • x (float) — x position of search
  • y (float) — y position of search
  • z (float) — z position of search
  • density (int*) — The traffic density the current node will spawn in a range of 0-15.
  • flags (int*) — The vehicle node flags, see eVehicleNodeProperties.
Back to PATHFIND