VehicleClient

setVehicleModKit

SET_VEHICLE_MOD_KIT0x1F2AA07F00B3217A

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

SignatureJavaScript
setVehicleModKit(vehicle: Vehicle, modKit: number): void
SignatureLua
setVehicleModKit(vehicle: Vehicle, modKit: integer)

Usage

JavaScript
setVehicleModKit(vehicle, modKit);
Lua
setVehicleModKit(vehicle, modKit)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
modKitintnumberinteger

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.

Set modKit to 0 if you plan to call setVehicleMod. That's what the game does. Most body modifications through setVehicleMod will not take effect until this is set to 0.

Full list of vehicle mod kits and mods by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/vehicleModKits.json

Reference

Namespace
Vehicle VEHICLE
In the game
void SET_VEHICLE_MOD_KIT(Vehicle vehicle, int modKit)
Hash
0x1F2AA07F00B3217A

Open in the interactive natives reference