VehicleClient

setVehicleUsedForPilotSchool

SET_VEHICLE_USED_FOR_PILOT_SCHOOL0xE05DD0E9707003A3

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

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

Usage

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

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Vehicle VEHICLE
In the game
void SET_VEHICLE_USED_FOR_PILOT_SCHOOL(Vehicle vehicle, BOOL toggle)
Hash
0xE05DD0E9707003A3

Open in the interactive natives reference