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
  • Item Name
  • label:
  • weight:
  • description:
  • chanceOfBreak?:
  • holdRotation?:
  • holdOffset?:
  • model?:
  • useable?:
  • strength?:
Export as PDF
  1. Resources
  2. Project Cars

Tools

Item Name

This is the key of tools table

type: string

Example
tools = {
  itemName = {
    label      = "Item Name",
    weight      = 1000,
    description = "A description of the item",
    chanceOfBreak = 100, --## 100% chance of breaking
  }
}


label:

type: string

Example
label = "Wrench"

weight:

type: integer

Example
weight = 1000

description:

type: string

Example
description = "A wrench is a tool used to provide grip and mechanical advantage in applying torque to turn objects—usually rotary fasteners, such as nuts and bolts—or keep them from turning."

chanceOfBreak?:

type: integer

Example
chanceOfBreak = 100

holdRotation?:

type: vector3

Example
holdRotation = vector3(0.0, 0.0, 0.0)

holdOffset?:

type: vector3

Example
holdOffset = vector3(0.0, 0.0, -0.18)

model?:

Model of object to hold type: string

Example
model = "imp_prop_axel_stand_01a"

useable?:

type: function

Example
useable = function(source)
  useJackStand(source, "jackstand")
end

strength?:

type: integer Used to limit the maximum weight of a vehicle that can be supported by the item.

Example
strength = 1500

PreviousInstallationNextParts

Last updated 1 year ago

🔧