High Scripts
  • Welcome
  • Information
    • Discord
    • Licensing System
    • Terms of service
  • high-phone
    • 📀Installation
    • ⚠️Common issues
    • ⚙️Configuration
      • 🖼️Imgur setup
      • 👮Job contacts
      • 🚑Distress Signals
      • 🥯OX-Mysql compatibility
      • 🇺🇸Adding translation files
    • 👩‍💻Developers
      • Client-side exports
      • Server-side exports
      • Javascript API
      • Events
      • Creating new apps
  • HIGH-3DSOUNDS
    • 📀Installation
    • ⚠️Common issues
    • 👩‍💻Developer API
      • Client-side exports
      • Server-side exports
Powered by GitBook
On this page
  • getPhoneNumber()
  • disablePhone(boolean)
  • openPhone()
  • closePhone()
  • isOpen()
  • isOnCall()
  • getCurrentCall()
  • isCameraEnabled()
  • sendNotification(app, content, length)

Was this helpful?

  1. high-phone
  2. Developers

Client-side exports

Here you can find all the client-side exports of our phone.

getPhoneNumber()

local phoneNumber = exports.high_phone:getPhoneNumber()

This export function gets your phone number.

Returns a string containing your phone number.

disablePhone(boolean)

local phoneNumber = exports.high_phone:disablePhone(boolean)

This export function gets your phone number.

Argument number
Argument name
Example value

1

boolean

true

openPhone()

exports.high_phone:openPhone()

This export function opens your phone if you have the required item, are not in water, etc.

closePhone()

exports.high_phone:closePhone()

This export function closes your phone.

isOpen()

local isOpen = exports.high_phone:isOpen()

This export function returns a boolean if your phone is open.

Returns true if the phone is open, and false if not.

This export function returns a boolean if your phone is open.

isOnCall()

local isOpen = exports.high_phone:isOnCall()

This export function returns a boolean if you're on a phone call.

Returns true if you're on a call, and false if not.

getCurrentCall()

local isOpen = exports.high_phone:getCurrentCall()

This export function returns a boolean if you're on a phone call.

The table is returned only when player is a call, not when calling.

{
    id = 0, -- The ID of the call.
    number = "123", -- The phone number that you're in a call with.
    privateNumber = false, -- Is the phone number you're in call with private.
    playerId = 0, -- The player ID that you're in a call with.
    job = false, -- Is the phone number you're in a call with a job contact.
}

isCameraEnabled()

local isCameraOpen = exports.high_phone:isCameraEnabled()

This export function returns a boolean if you're currently in the camera app.

Returns true if the camera app is opened and is active, false if not.

sendNotification(app, content, length)

exports.high_phone:sendNotification(app, content, length)

This export function sends a notification into your phone.

Argument number
Argument name
Example value

1

app

"Bank"

2

content

"You have received $ 100"

3

length (in miliseconds)

2000

PreviousDevelopersNextServer-side exports

Last updated 2 years ago

Was this helpful?

👩‍💻