setVehicleIsWanted
SET_VEHICLE_IS_WANTED0xF7EC25A3EBEEC726The 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.
setVehicleIsWanted(vehicle: Vehicle, state: boolean): voidsetVehicleIsWanted(vehicle: Vehicle, state: boolean)Usage
JavaScript
setVehicleIsWanted(vehicle, state);Lua
setVehicleIsWanted(vehicle, state)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicle | Vehicle | number | integer |
state | BOOL | boolean | boolean |
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