UZ Scripts
Vehicle Shop

Exports

Export functions reference for the Taintless Vehicle Shop — open showroom, get vehicle data, and more.


Integration Examples

AddEventHandler('npc:interact', function(npcId)
    if npcId == 'luxury_dealer' then
        exports['uz_Dealerships']:openShowroom(1)
    elseif npcId == 'budget_dealer' then
        exports['uz_Dealerships']:openShowroom(2)
    end
end)
RegisterCommand('comparecars', function(source, args)
    local car1 = exports['uz_Dealerships']:GetVehicleData(args[1])
    local car2 = exports['uz_Dealerships']:GetVehicleData(args[2])

    if car1 and car2 then
        print(car1.name .. ': $' .. car1.price)
        print(car2.name .. ': $' .. car2.price)
        print('Difference: $' .. math.abs(car1.price - car2.price))
    end
end, false)

On this page