RedM Natives

VEH_TO_NET

Returns the network ID of the given vehicle.

Hash0xB4C94523F023419C
Runtime nameVehToNet
NamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xB4C94523F023419C

Signature

int VEH_TO_NET(Vehicle vehicle);

Parameters

NameTypeDescription
vehicleVehicle—

Returns int

Description

Returns the network ID of the given vehicle.

Usage

Lua
local retval = VehToNet(vehicle)

-- always works, by hash
local retval = Citizen.InvokeNative(0xB4C94523F023419C, vehicle, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = VehToNet(vehicle);

// by hash
const retval = Citizen.invokeNative('0xB4C94523F023419C', vehicle, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0xB4C94523F023419C, vehicle);

See also

Sources

alloc8or RDR3 NativeDB

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