DirkScripts Documentation
  • 👋Welcome
  • The Basics
    • ⬇️Installing Resources
  • Resources
    • 📚Dirk Lib
      • Getting Started
      • Cache
      • Modules
        • Await
        • Blip
        • Callback
        • Camera
        • File
        • Interact
        • Objects
        • Player
          • Client
          • Server
        • Groups
          • Client
          • Server
        • Print
        • Request
        • Table
        • Target
        • Zones
        • UI
          • Context
          • Untitled
    • 🔧Project Cars
      • Installation
      • Tools
      • Parts
      • Commands
    • 🤼Multicharacter
      • Installation
      • Configuration
      • Exports
      • F.A.Q
      • Commands
    • 💊Drug Labs v2
      • Installation
      • Tebex Integration
      • Creating Labs
  • 🛒Store
  • 🗣️Discord
  • 🖥️GitHub
Powered by GitBook
On this page
Export as PDF
  1. Resources
  2. Dirk Lib
  3. Modules

Await

A small module containing a simple time based await for function callback

Shared Module - This can be used by both clients and the server

lib.await

Used to add a timed delay to the defined callback

lib.await(func, timeout)
Parameter
Type
Required
Description

func

Function

Callback function to be executed

timeout

Number

Duration in sections to wait

PreviousModulesNextBlip

Last updated 10 months ago

📚