⌨️FUNCTIONS
Check if phone is open
exports['piotreq_phone']:isOpen() -- true | false
LocalPlayer.state.PhoneOpen -- true | false
Force close phone
This will instant close phone and also reject call if on call
exports['piotreq_phone']:ForceClosePhone()
On open / close phone
isActive
boolean
AddEventHandler('piotreq_phone:isPhoneActive', function(isActive)
print(isActive) -- true | false
end)
On notify (only trigger if phone is closed)
data
table
px
number | string
It will print number (position of phone in px used in translateY) if there is more than 1 notify left, otherwise it will print 'close'
AddEventHandler('piotreq_phone:isNotifyActive', function(data)
print(data.px) -- number | string
end)
Last updated