RedM Natives

_IS_VEHICLE_TOUCHING_VEGETATION

Returns whether the vehicle is currently touching dense vegetation/foliage collision or physics materials such as bushes, reeds, or thick shrubs.

Hash0x51C7694E140FAE43
Runtime nameIsVehicleTouchingVegetation
NamespaceVEHICLE
SideClient
NameCommunity guess
Docs
Since build1207
Also known as_IS_VEHICLE_COLLIDING_WITH_VEGETATION

Signature

BOOL _IS_VEHICLE_TOUCHING_VEGETATION(Vehicle vehicle);

Parameters

NameTypeDescription
vehicleVehicle—

Returns BOOL

Description

alloc8or RDR3 NativeDB

Returns whether the vehicle is currently touching dense vegetation/foliage collision or physics materials such as bushes, reeds, or thick shrubs.
Observed behavior suggests this is driven by the vehicle's collision bounds or wheels interacting with vegetation.

VORPCORE RDR3natives

true if the vehicle is colliding with vegetation/bushes, false if it is in the clear.

Usage

Lua
local retval = IsVehicleTouchingVegetation(vehicle)

-- always works, by hash
local retval = Citizen.InvokeNative(0x51C7694E140FAE43, vehicle, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = IsVehicleTouchingVegetation(vehicle);

// by hash
const retval = Citizen.invokeNative('0x51C7694E140FAE43', vehicle, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0x51C7694E140FAE43, vehicle);
  • The name is a community guess and may change. If the named call is missing in your client build, use InvokeNative with the hash — it always works.

Sources

alloc8or RDR3 NativeDB · VORPCORE RDR3natives

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.