📳NOTIFICATIONS

  1. Send Notification

  • title string

  • time string

  • text string

  • timeout? number

  • type? number

  • playerId number

TriggerClientEvent('piotreq_phone:SendNotification', playerId, {
    title = 'New message',
    time = os.date('%H:%M', os.time()),
    text = 'Location GPS',
    timeout = 4000, -- optional
    type = 'default' -- optional
})
  1. Send Request

  • text string

  • name string

  • type? string

  • buttons table

  • playerId number

  • args any

TriggerClientEvent('piotreq_phone:SendRequest', playerId, {
    text = 'Invoice',
    name = 'UwU Cafe',
    type = 'pink', -- optional, you can check types in css
    buttons = {
        {
            type = 'light', 
            event = 'piotreq_uwucafe:PayBill',
            args = {amount = 100, id = playerId}, 
            icon = 'fa-solid fa-check'
        },
        {
            type = 'red', 
            event = 'piotreq_uwucafe:CancelBill',
            icon = 'fa-solid fa-xmark'
        },
    }
})

Last updated