I’ve got a custom wheel pack and I’m trying to make a list using NativeUI on how to change the wheels to the custom wheels. Here is what I have so far:
wheels = {
"wheel_sport_hre_10",
"wheel_sport_hre_11",
"wheel_sport_hre_12",
}
function WheelsMenu(menu)
local wheelsList = NativeUI.CreateListItem("Change Wheels", wheels, 1)
menu:AddItem(wheelsList)
menu.OnListSelect = function(sender, item, index)
if item == wheelsList then
local selectedWheels = item:IndexToItem(index)
local playerPed = GetPlayerPed(-1)
if IsPedInAnyVehicle(playerPed, false) then
local vehicle = GetVehiclePedIsIn(playerPed, false)
SetVehicleModKit(vehicle,0)
SetVehicleMod(vehicle, 23, selectedWheels[23], false)
notify("~g~Wheels Changed.")
else
notify("~r~Get in a car you dick.")
end
end
end
But it doesn’t change the wheels to the custom ones or it just entirely changes them to a stock wheel. Please help with this <3