Weed Type
All weed actions are formated as an array containing objects with the following properties.
Blip
Adding blip to the center coordinate of stage zone. Not required
active
boolean
false
Blip will show or hide
scale
number
0.85
Scale of the blip
text
string
nil
Text displayed on the blip
Prop
Prop to be added to the pad's hand when playing animation. Not Required
If you want to define multiple props, you can pass them as individual tables (array of objects)
model
hash
required
bone
number
60309
pos
vector3
required
rot
vector3
required
rotOrder
number
0
Animation
Defines animation settings for interactions. Animations Not Required
dict
string
required
Animation dictionary.
clip
string
required
Animation clip.
flag
number
0
Animation flag.
scenario
string
nil
Must specify either scenario or dict.
Object
Defines an in-game object. Objects Not Required
model
string
required
Model of the object.
rotation
vector3
required
Rotation of the object.
offset
vector3
nil
Offset of the object.
respawnTime
number
nil
After interacting with the object, the object will be deleted and will recreated at the end of the time
OnCompleted
Defines actions that occur upon completion of an interaction. Not required
giveItems
string | string[] | table<string, number>
Items to give on completion.
removeItems
string | string[] | table<string, number>
Items to remove on completion.
exp
number
Experience points to stage on completion.
CanInteract
Defines conditions required to interact with an option. Not Required
items
string | string[] | table<string, number>
Items required to interact.
job
string | string[] | table<string, number>
Jobs allowed to interact.
level
number
Minimum level required.
reputationLevel
number
Minimum reputation level required.
requiredPoliceCount
number
Number of police needed for this option.
Options
Defines interaction options for a stage.
iconvalue applies to font-awesomeif you set a
minigame, the ox_progressbar will appear and prompt you to press [E] 3 times in the correct positionpoliceAlertChange, probability to notify police when target is completed
label
string
Label for the interaction option.
icon
string
Icon for the interaction option.
minigame
boolean
Whether a minigame is required.
duration
number
Duration of the interaction in milliseconds.
cooldown
number
Cooldown time in milliseconds.
policeAlertChange
number
Percentage chance of alerting police.
OnItemUsed
Defines actions triggered when an useableItem is used. Not Required
When using an item you can trigger an event or simulate an
option
event
string
Client-side event name.
serverEvent
string
Server-side event name.
simulateOption
number | string
Option table key.
WeedStage
Defines a stage in the weed processing system.
If you set
useableItem,onItemUsedwill be triggered when you use that item. You may prefer this for operations like rolling for example.zonesare required if nouseableItem. Each added zone will be checked separately for all processes. You can add as many as you want.If you set the
radiusvalue, theobjectwill spawn at a random position inside thatzone.radiusis not required and if not set, theobjectwill spawn at the exact position of thezonesOptionsare the options you will see when you interact with theobjectwith target
active
boolean
Whether the stage is active (default: true).
label
string
Descriptive label for the stage.
zones
table<key, vector3> required
Zones where the stage can be performed.
radius
number
Radius for random object placement.
useableItem
string Not Required
Item required for interaction. item name
Weed
Defines a type of weed and its processing stages.
active
boolean
Whether the weed type is active (default: true).
label
string
Descriptive label for the weed.
imagePath
string
Image for UI.
description
string
Description of the weed type.
Examples
Last updated