title : Notification title
message : Notification message
img : You can use icons from the phone or use .png or .jpg in a photo
duration : To set how long the notification stays (You must type the millisecond value) - default duration 5000
This function is an event that works for the phone numbers you specify "Config.SpecificNumber" in config.lua.
RegisterNetEvent('gksphone:server:specificNumber', function(source,phoneNumber)---- You can add the function you want to do to this partend)
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)
Changing Phone Number
Changing the player's phone number
-- src => Player's ID-- newNumber => new phone number (phone number must be string)local src = sourcelocal newNumber ="5555555"exports["gksphone"]:NumberChange(src, newNumber)