_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.
Hash
0x51C7694E140FAE43Runtime name
IsVehicleTouchingVegetationNamespaceVEHICLE
SideClient
NameCommunity guess
Docs
Since build1207
Also known as
_IS_VEHICLE_COLLIDING_WITH_VEGETATIONSignature
BOOL _IS_VEHICLE_TOUCHING_VEGETATION(Vehicle vehicle);Parameters
| Name | Type | Description |
|---|---|---|
vehicle | Vehicle | — |
Returns BOOL
Description
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.
true if the vehicle is colliding with vegetation/bushes, false if it is in the clear.
Usage
local retval = IsVehicleTouchingVegetation(vehicle)
-- always works, by hash
local retval = Citizen.InvokeNative(0x51C7694E140FAE43, vehicle, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = IsVehicleTouchingVegetation(vehicle);
// by hash
const retval = Citizen.invokeNative('0x51C7694E140FAE43', vehicle, Citizen.returnResultAnyway());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
InvokeNativewith the hash — it always works.
Sources
alloc8or RDR3 NativeDB · VORPCORE RDR3natives
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.