NetworkClient

setNetworkVehicleAsGhost

SET_NETWORK_VEHICLE_AS_GHOST0x6274C4712850841E

The 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.

SignatureJavaScript
setNetworkVehicleAsGhost(vehicle: Vehicle, toggle: boolean): void
SignatureLua
setNetworkVehicleAsGhost(vehicle: Vehicle, toggle: boolean)

Usage

JavaScript
setNetworkVehicleAsGhost(vehicle, toggle);
Lua
setNetworkVehicleAsGhost(vehicle, toggle)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
toggleBOOLbooleanboolean

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

Open in the interactive natives reference