You will find server events of our gksphonev2 that you can use in this page.
Exports
Send Mail
-- src => Player's IDlocal src = sourcelocal MailData = { sender ='GKSHOP', image ='/html/img/icons/mail.png', subject ="GKSPHONE", message ='TEST', button = { --- If you don't want it to be a button, please remove it. enabled =true, buttonEvent ="xxxxx:client:setLocation", buttonData = waitingDelivery, -- data buttonname ="Test Button" }}exports["gksphone"]:SendNewMail(src, MailData)
Send Offline Mail
-- citizenID => ESX identifierlocal xPlayer = ESX.GetPlayerFromId(source)local citizenID = xPlayer.identifierlocal MailData = { sender ='GKSHOP', image ='/html/img/icons/mail.png', subject ="GKSPHONE", message ='TEST', button = { --- If you don't want it to be a button, please remove it. enabled =true, buttonEvent ="xxxxx:client:setLocation", buttonData = waitingDelivery, -- data buttonname ="Test Button" }}exports["gksphone"]:SendNewMailOffline(citizenID, MailData)
New Billing
-- src => Player's ID-- label => Billing description-- society => By which job the billingwas created-- senderBilling => Who is the person sending the billing?-- senderID => ESX Identifier of the billing originator-- amount => Billing pricelocal src = sourcelocal label ="Excessive Speed"local society ="police"local senderBilling ="GKSHOP XENKNIGHT" -- Player Namelocal senderID ="char1:4b110a7811" -- xPlayer.identifierlocal amount =500exports["gksphone"]:NewBilling(src, label, society, senderBilling, senderID, amount)
Send Notification
-- src => Player's IDlocal src = sourcelocal NotifData = { title ="Notification header", -- Notification header message ="Notification Message", -- Notification content message icon ='/html/img/icons/messages.png', -- Icon of the notification duration =5000, -- specify how many seconds, type ="success", -- the home screen will also appear on the notification side. buttonactive =false, -- Activate if you want to use the button function button = { buttonEvent ="gksphone:client:Test", -- event name to use if the button approves buttonData ="test", -- If you want to transfer any data in the button }}exports["gksphone"]:sendNotification(src, NotifData)