SetVehicleWheelModel

From Multi Theft Auto: Wiki
Revision as of 02:38, 10 July 2023 by AirNewSCR (talk | contribs) (→‎Code)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Code

Click to collapse [-]
Server/Clientside script
validWheels = {[1025] = true, [1073] = true, [1074] = true, [1075] = true, [1076] = true, [1077] = true, [1078] = true, [1079] = true, [1080] = true, [1081] = true, [1082] = true, [1083] = true, [1084] = true, [1085] = true, [1096] = true, [1097] = true, [1098] = true}

function setVehicleWheelsModel(veh, model)
    if veh and isElement(veh) then
        if validWheels[tonumber(model)] then
            addVehicleUpgrade(veh, tonumber(model))
            return true
        end
    end
    return false
end