🇭🇰
Sleeping Dogs: DE (Script API)
  • Overview
  • ⛔Const
  • đŸ”ĸEnums
  • đŸ“ĻClasses
    • 🌈Color
    • 💾Config
    • 🚀Console
    • â˜¯ī¸Font
    • đŸ‘ŊHash
    • đŸ–ŧī¸Image
    • âŒ¨ī¸Input
    • đŸ‘ī¸Renderer
    • âŗTimer
    • 2ī¸âƒŖVector2
    • 3ī¸âƒŖVector3
  • đŸ—ƒī¸Game Classes
    • â„šī¸Overview
    • 🔊Audio
    • 📹Camera
    • đŸĢ‚CollisionData
    • 🎮GameInput
    • 🧩GameSlice
    • đŸ“ēHud
    • 📊Metrics
    • 📱PDA
    • 📈ProgressionTracker
    • 💡SimObject
    • 📮SimObjectProp
    • 🧍SimCharacter
    • 🚘SimVehicle
    • đŸ”ĢSimWeapon
    • â˜€ī¸TimeOfDayManager
  • 📩Callbacks
    • OnCollision
    • OnCharacterDeath
    • OnCharacterSpawn
    • OnGameUpdate
    • OnRender
    • OnUnload
    • OnVehicleDeath
Powered by GitBook
On this page
  • Examples:
  • Static Functions:

Was this helpful?

  1. Game Classes

PDA

General game-PDA that can be opened with up arrow.

Examples:

Add Contact:

function PDA_Callback()
{
    return false; // Return true if you wanna answer call...
}

PDA.AddContact("ContactName", "ContactPortrait", PDA_Callback);

Static Functions:

.EndPhoneCall

PDA.EndPhoneCall()

Ends current phone call.

.AddContact

PDA.AddContact(name: string, portrait: string, callback: function)

Name
Type
Description

name

string

Name of the contact

portrait

string

Portrait of the contact

callback

function

Function that get called when player will call this contact

Adds new contact to the PDA's contacts list.

.RemoveContact

PDA.RemoveContact(name: string)

Name
Type
Description

name

string

Name of the contact

Removes contact from the PDA's contacts list that has been added by script.

PreviousMetricsNextProgressionTracker

Last updated 2 years ago

Was this helpful?

đŸ—ƒī¸
📱