📳NOTIFICATIONS
Send Notification
title
stringtime
stringtext
stringtimeout?
numbertype?
numberplayerId
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
})title
stringtime
stringtext
stringtimeout?
numbertype?
number
exports['piotreq_phone']:SendNotification({
title = 'New message',
time = 'Right now',
text = 'Location GPS',
timeout = 4000, -- optional
type = 'default' -- optional, you can check types in css
})
TriggerEvent('piotreq_phone:SendNotification', {
title = 'New message',
time = 'Right now',
text = 'Location GPS',
timeout = 4000, -- optional
type = 'default' -- optional
})Send Request
text
stringname
stringtype?
stringbuttons
tableplayerId
numberargs
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'
},
}
})text
stringname
stringtype?
stringbuttons
tableevent?
stringeventType?
stringargs
anyicon
string
TriggerEvent('piotreq_phone:SendRequest', {
text = 'Invoice',
name = 'UwU Cafe',
type = 'pink', -- optional, you can check types in css
buttons = {
{
type = 'light',
event = 'piotreq_uwucafe:PayBill',
eventType = 'server',
args = {amount = 100},
icon = 'fa-solid fa-check'
},
{
type = 'red',
event = 'piotreq_uwucafe:CancelBill',
icon = 'fa-solid fa-xmark'
},
}
})Last updated