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
  • lib.request.model
  • lib.request.streamedTextureDict
Export as PDF
  1. Resources
  2. Dirk Lib
  3. Modules

Request

Used to request models and textures

Client Module - This can only be used on the client

lib.request.model

Load a model with timeout checks

local success = lib.request.model(model, timeout)
Parameter
Type
Required
Description

model

StringObject

Model(s) to load

timeout

Number

Timeout for the model loads, default 20s

lib.request.streamedTextureDict

Request texture dictionary

local success = lib.request.streamedTextureDict(txd, timeout)
Parameter
Type
Required
Description

txd

StringObject

Texture(s) to load

timeout

Number

Timeout for the texture loads, default 20s

PreviousPrintNextTable

Last updated 10 months ago

📚