Page cover image

Exports

Example (for qb-garages)

RegisterNUICallback('takeOutVehicle', function(data, cb)
    local response = exports["G9-banking"]:getBlock()
    if response then
        TriggerEvent('qb-garages:client:takeOutGarage', data)
        cb('ok')
    else
        QBCore.Functions.Notify('You have an unpaid bill or loan!')
    end
end)

Last updated