๐ŸชถUsage examples

Usage examples

QB Progressbar Example usage:

QBCore.Functions.Progressbar("search_register", "Searching Register", 5000, false, true, {
        disableMovement = false,
        disableCarMovement = false,
        disableMouse = false,
        disableCombat = false,
    }, {}, {}, {}, function() -
        QBCore.Functions.Notify("You have searched the register", "success")
    end, function() 
        QBCore.Functions.Notify("You have stopped searching the register", "error")
end)

QB Noitfy Example usage :

    QBCore.Functions.Notify("Test", "error")

INFO BAR

  • CLIENT

OPEN

TriggerEvent('pa-lib:openinfo', "Get Car" , "Go to motel and take car.") 

CLOSE

TriggerEvent('pa-lib:closeinfo')
  • SERVER

OPEN

 TriggerClientEvent('pa-lib:openinfo', source,"Get Car" , "Go to motel and take car.")

CLOSE

 TriggerClientEvent('pa-lib:closeinfo', source)

Last updated

Was this helpful?