Vehicle::getWheelGroundSurfaceMaterial

From RAGE Multiplayer Wiki

Client-Side
Function

 JavaScript



JavaScript Syntax


Summary

Returns the surface material beneath a specific wheel of a vehicle.

Syntax

vehicle.getWheelGroundSurfaceMaterial(wheelIndex);

Required Parameters

  • wheelIndex: number The index of the wheel (0 / front left, 1 / front right, etc.).

Return Value

  • 'number' - The material identifier for the surface beneath the wheel.

Example

// Check the ground surface material under the front-left wheel
const material = mp.vehicles.local.getWheelGroundSurfaceMaterial(0);
mp.gui.chat.push(`Ground material under front-left wheel: ${material}`);


See Also