setNetworkVehicleAsGhost
SET_NETWORK_VEHICLE_AS_GHOST0x6274C4712850841EThe GTA V native SET_NETWORK_VEHICLE_AS_GHOST of the NETWORK namespace, as LS:MP client scripts call it: the global function setNetworkVehicleAsGhost, in JavaScript and in Lua.
setNetworkVehicleAsGhost(vehicle: Vehicle, toggle: boolean): voidsetNetworkVehicleAsGhost(vehicle: Vehicle, toggle: boolean)Usage
JavaScript
setNetworkVehicleAsGhost(vehicle, toggle);Lua
setNetworkVehicleAsGhost(vehicle, toggle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicle | Vehicle | number | integer |
toggle | BOOL | boolean | boolean |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Reference
- Namespace
- Network NETWORK
- In the game
void SET_NETWORK_VEHICLE_AS_GHOST(Vehicle vehicle, BOOL toggle)- Hash
0x6274C4712850841E- Formerly
_SET_NETWORK_OBJECT_NON_CONTACT