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

Last updated