networkSetVehicleDrivenLocation
NETWORK_SET_VEHICLE_DRIVEN_LOCATION0xA0CE91E47531D3BBThe GTA V native NETWORK_SET_VEHICLE_DRIVEN_LOCATION of the NETWORK namespace, as LS:MP client scripts call it: the global function networkSetVehicleDrivenLocation, in JavaScript and in Lua.
networkSetVehicleDrivenLocation(location: Hash): voidnetworkSetVehicleDrivenLocation(location: Hash)⚠
Not in this game build
The global exists, but the native is not part of the game build LS:MP runs: calling it does nothing and returns undefined in JavaScript, nil in Lua. It never throws. See Coverage.
Usage
JavaScript
networkSetVehicleDrivenLocation(location);Lua
networkSetVehicleDrivenLocation(location)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
location | Hash | number | integer |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Notes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
Sets 'loc' variable used in MetricVEHICLE_DIST_DRIVEN
Reference
- Namespace
- Network NETWORK
- In the game
void NETWORK_SET_VEHICLE_DRIVEN_LOCATION(Hash location)- Hash
0xA0CE91E47531D3BB- Introduced
- Game build 2944 legacy numbering