Tool Item
Each tool is defined as a key in the tools table with a structured value. Here's a breakdown of the expected fields:
π Fields:
Field
Type
Required
Description
π‘ Example
tools = {
wrench = {
label = "Wrench",
weight = 1000,
description = "A sturdy wrench for basic repairs.",
chanceOfBreak = 25, -- 25% chance of breaking
holdRotation = vector3(90.0, 0.0, 0.0),
holdOffset = vector3(0.0, -0.15, -0.02),
model = "prop_tool_wrench",
strength = 2000,
useable = function(src)
-- custom usage logic here
end
}
}Last updated