NOTIFICATIONS
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
})
title
string
time
string
text
string
timeout?
number
type?
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
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'
},
}
})
text
string
name
string
type?
string
buttons
table
event?
string
eventType?
string
args
any
icon
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