VehicleClient

setVehicleIsWanted

SET_VEHICLE_IS_WANTED0xF7EC25A3EBEEC726

The GTA V native SET_VEHICLE_IS_WANTED of the VEHICLE namespace, as LS:MP client scripts call it: the global function setVehicleIsWanted, in JavaScript and in Lua.

SignatureJavaScript
setVehicleIsWanted(vehicle: Vehicle, state: boolean): void
SignatureLua
setVehicleIsWanted(vehicle: Vehicle, state: boolean)

Usage

JavaScript
setVehicleIsWanted(vehicle, state);
Lua
setVehicleIsWanted(vehicle, state)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
stateBOOLbooleanboolean

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 the wanted state of this vehicle.

Reference

Namespace
Vehicle VEHICLE
In the game
void SET_VEHICLE_IS_WANTED(Vehicle vehicle, BOOL state)
Hash
0xF7EC25A3EBEEC726

Open in the interactive natives reference