Client Exports
You will find client events of our gksphonev2 that you can use in this page.
Notification
Send Notification
local 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"]:Notification(NotifData)Mail
Send Mail
Call
Create Call
End Call
Is In Call
CreateCallNumber
RemoveCallNumber
CallEndCustom
Custom App
Add Custom App
Phone
isPhoneOpen
PhoneOpen
In order for the phone to be open, a player must first open it from the inventory.
PhoneClose
PhoneOpenBlock
Prevent the phone from turning on
PhoneOpenUnBlock
If you have blocked the phone from turning on, you can activate it again with this export.
PhoneOpenBlockStatus
PhoneNumber
PhoneUniqueId
Is Camera Open
Services
Send Report
Battery
GetPhoneBattery
SetPhoneBattery
SavePhoneBattery
ToggleCharging
IsPhoneBatteryDead
IsPhoneCharging
Signal
You must enable Config.Signal (gksphone/config/signal/config.lua) to use Export. Signal requires polyzone
addSignal
destroySignal
Misc
heavyJammer
This export renders the phone unusable and only a message section appears in the middle of the screen.
ToogleFocus
Last updated