FreeScriptsDocsSupport

Browse

  • Documentation
    • FAQ
  • 📱 Phone
    • 🧠 Installation
    • 🦄 Unique phones
    • 💿 Configure
      • 💄 Additional Features
      • 📸 Camera
      • 📹 Video Calls
      • 🍏 Apps
      • 🪵 Logs
      • 🔋 Battery System
      • 🖼️ Media Customization
      • 🗣️ Multi-Language Support
      • 🗃️ SIM Cards
      • 🚗 Valet System
      • 🖼️ Wallpapers App
      • ⛅ Weather Widget
    • ⏭️ Exports
      • Client side
        • 👁️‍🗨️ General
        • 📞 Calls
        • ☀️ Groups
        • 🏢 Companies
        • 🔧 Misc
        • 🗼 Signal Towers
      • Server side
        • 🆔 Identify Player
        • ☎️ Sim Cards
        • 📞 Calls
        • 💬 Messages
        • ☀️ Groups
        • 🌐 Cell Broadcast
        • 💸 YPay
        • 📧 Mail
        • 📪 Notifications
        • 📵 Screen Damage
        • 🗯️ Dark Chat
        • 🔧 Misc
    • 🪛 Commands
    • 📡 Events
      • Server side
        • 📨 Messages
        • 📱 Social Media
        • ☎️ Calls
    • 🍎 Custom apps
    • 🏦 Banking App
    • 📈 Markets App
    • 👜 State bags
  • ☎️ Boomer Phone
    • 🧠 Installation
    • 🦄 Unique phones
    • ⏯️ Exports
      • Client side
  • 🏠 Properties
    • 🧠 Installation
    • 💿 Configure
    • 🔗 Compatibility
      • Phones
        • YSeries
        • LB Phone
    • 📖 Guides
      • 🛏️ Starter Apartments
      • 🐚 Add More Shells
      • 🔑 Physical Keys
      • 🪑 Furniture As Items
      • 🛠️ Fix Interactable Points
      • 📋 Discord Logs Setup
    • ⏭️ Exports
      • Client side
        • GetCurrentPropertyId
        • GetCurrentProperty
        • IsPointInsideProperty
        • OpenPropertyMenu
        • AddKey
        • RemoveKey
        • SetWaypointToProperty
        • GetAllProperties
        • GetKeyHolders
        • PoliceRaidDoor
        • WrapIntoProperty
        • GetClosestDoor
        • GetEntryCoordinates
        • UseLockpick
        • PoliceRaidDoor
      • Server side
        • GetAllProperties
        • GetPropertyData
        • AddKey
        • RemoveKey
        • ToggleDoorlock
        • GetPlayersInProperty
        • GetKeyHolders
        • DeleteProperty
        • AddStarterApartment
        • SellProperty
        • TransferProperty
    • 🪝 Hooks System
      • buyProperty
      • rentProperty
      • sellProperty
      • deleteProperty
      • createDoor
      • saveSettings
      • setInteractablePoint
      • canEnter
      • canExit
    • 👜 State bags
  • 🏦 Banking
    • 🧠 Installation
    • 🪛 Commands
    • ⏯️ Exports
      • Client side
      • Server side
    • 🪵 Logs
    • 🪝 Hooks
    • 🏦 Banking App
  • 💸 Billing
    • 🧠 Installation
    • ⏭️ Exports
      • Client side
      • Server side
  • 📊 Hud
    • 🧠 Installation
    • ⏭️ Exports
      • Client side
  • 📦 Storage Units
    • 🧠 Installation
  • 🎰 Slots
    • 🧠 Installation
    • 📱 Phone app
  • 🎃 Minigames
    • 🎯 Exports and Usage
    • 🔧 Commands

📞 Calls

CreateCall

Initiates a phone call from the client side, showing the calling screen and triggering the default call functionality. This export replicates the normal call action from the UI.

lua
---@param targetNumber string The phone number to call
---@param options table|nil Optional: { anonymous?: boolean }
---@return boolean True if call was initiated successfully, false otherwise
lua
local success = exports.yseries:CreateCall("0882222")

if success then
    print("Call initiated successfully")
else
    print("Failed to initiate call")
end

Validation Checks:

  • Validates target number is provided and not empty
  • Checks if trying to call yourself (returns false)
  • Checks if already in a call (returns false)
  • Checks if airplane mode is enabled (returns false)
  • Checks if service/signal is available (returns false)

Example Usage:

lua
-- Basic call
exports.yseries:CreateCall("0882222")

-- Anonymous call
exports.yseries:CreateCall("0882222", { anonymous = true })

Note: This export will show the calling screen UI and trigger the full call flow, including validation, recent call logging, and call state management. It replicates the behavior of calling from the phone's contacts, recents, or keypad.

Note: Use CreateCall if you want to always show the calling screen UI. Use CallContact for programmatic calls without UI interaction.


IsInCall

Checks if the local player is currently in a phone call and returns the call ID if they are.

lua
---@return boolean True if player is in a call, false otherwise
---@return number|nil CallId if player is in a call, nil otherwise
lua
local inCall, callId = exports.yseries:IsInCall()

if inCall then
    print("Player is currently in a call with CallId: " .. tostring(callId))
else
    print("Player is not in a call")
end

Example Usage:

lua
local inCall, callId = exports.yseries:IsInCall()

if inCall and callId then
    -- Player is in a call, you can use callId to get more details
    print("Player is in call: " .. callId)
    -- Optionally end the call
    -- exports.yseries:CancelCall()
end

CancelCall

Cancels the current active call.

lua
exports.yseries:CancelCall()

Note: This will end the call for all participants and trigger cleanup events.


GetTargetPlayerCallStatus

Checks the call status of a target player by their phone number.

lua
---@param targetNumber string The target phone number
---@return table Status object with busy, canCall, isOnline, inCall fields
lua
local status = exports.yseries:GetTargetPlayerCallStatus("0882222")

if status.canCall and not status.inCall then
    print("Target can receive calls")
else
    print("Target is busy or unavailable")
end

Returns:

lua
{
    busy = false,
    canCall = true,
    isOnline = true,
    inCall = false
}

GetCallConfig

Retrieves the call configuration settings.

lua
---@return table Call configuration settings
lua
local config = exports.yseries:GetCallConfig()

print("Call repeats: " .. config.CallRepeats)
print("Repeat timeout: " .. config.RepeatTimeout)

On this page

  • CreateCall
  • IsInCall
  • CancelCall
  • GetTargetPlayerCallStatus
  • GetCallConfig

All Rights Reserved

TeamsGG © 2026

Pages

FreeScriptsDocsSupport

Legal

Terms of ServiceRefunds

Tebex

Tebex ImpressumTebex TermsTebex Privacy

Socials

DiscordYouTube