Client
Client exports
AddNewModItem
-- Example
exports.kq_obd:AddNewModItem({
name = 'Headlight brightness',
description = 'Adjusts the intensity of the vehicle’s headlight output. Note: increased brightness may not be road-legal in all areas.',
options = {
['0.25'] = '25%',
['0.5'] = '50%',
['0.75'] = '75%',
['1'] = '100%',
['1.25'] = '125%',
['1.5'] = '150%',
},
default = 1,
callback = function(vehicle, value)
SetVehicleLightMultiplier(vehicle, tonumber(value) + 0.0)
end
})
-- Returns:
-- (boolean)AddFaultCode
Last updated