VEH_TO_NET
Returns the network ID of the given vehicle.
Hash
0xB4C94523F023419CRuntime name
VehToNetNamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xB4C94523F023419CSignature
int VEH_TO_NET(Vehicle vehicle);Parameters
| Name | Type | Description |
|---|---|---|
vehicle | Vehicle | — |
Returns int
Description
Returns the network ID of the given vehicle.
Usage
local retval = VehToNet(vehicle)
-- always works, by hash
local retval = Citizen.InvokeNative(0xB4C94523F023419C, vehicle, Citizen.ResultAsInteger())JavaScript and C#
const retval = VehToNet(vehicle);
// by hash
const retval = Citizen.invokeNative('0xB4C94523F023419C', vehicle, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0xB4C94523F023419C, vehicle);See also
PED_TO_NETReturns the network ID of the given ped.OBJ_TO_NETReturns the network ID of the given object._PROPSET_TO_NET
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.