🇭🇰
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
  • Properties:
  • Static Functions:
  • Functions:

Was this helpful?

  1. Classes

Timer

Built-in Timer library.

Example:

function ExampleTimer()
{
    // This will get called each 5 second.
    return true; // If you return false it will not get called next time.
}

Timer.Add(ExampleTimer, 5.0);

Properties:

Name
Type
Description

remaining

float (Read Only)

Time remaining before next call

Static Functions:

.Add

Timer.Add(callback: function, delay: float): Timer

Argument
Type
Description

callback

function

Callback that will get called

delay

float

Delay in seconds

Creates a new Timer object.

Functions:

.Destroy

Timer_Object.Destroy()

Destroys a Timer object.

PreviousRendererNextVector2

Last updated 2 years ago

Was this helpful?

đŸ“Ļ
âŗ