The Lab
VEHICLE native

_IS_VEHICLE_TOUCHING_VEGETATION

returns BOOL1 parambuild 1207

Returns true if vehicle is touching vegetation.

Signature

C
BOOL _IS_VEHICLE_TOUCHING_VEGETATION(Vehicle vehicle); // 0x51C7694E140FAE43 b1207

Parameters

#NameType
1vehicleVehicle

Facts

Facts about _IS_VEHICLE_TOUCHING_VEGETATION
Name
_IS_VEHICLE_TOUCHING_VEGETATION
Hash
0x51C7694E140FAE43
Namespace
Returns
BOOL
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result = Citizen.InvokeNative(0x51C7694E140FAE43, -- _IS_VEHICLE_TOUCHING_VEGETATION
  0 -- Vehicle vehicle
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0x51C7694E140FAE43", // _IS_VEHICLE_TOUCHING_VEGETATION
  0, // Vehicle vehicle
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x51C7694E140FAE43, // _IS_VEHICLE_TOUCHING_VEGETATION
  0 // Vehicle vehicle
);
All VEHICLE natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.