Kartik Scripts
WeedFeatures

Weather, Power, Smell & Security

🌧️ Weather

Outdoor plants react to the current weather. Plants inside lockups are not affected, and grow tents halve the effect.

WeatherEffect
Rain / ThunderWaters the plants (thunder also does a little damage)
Extra sunny / ClearGrows a bit faster, drinks more in the heat
Overcast / FoggyGrows slightly slower
Snow / BlizzardGrows much slower and loses health

The weather is read from your weather sync resource when it shares it (GlobalState.weather, qb-weathersync). Otherwise players' games report it. Edit Config.Weather.Effects in shared/config/growing.lua.

⚡ Power (Generators)

Outdoor grow lights need power. Place a Generator within range and refuel it with a Fuel Can. It burns more fuel the more lights it runs. Lights inside lockups are always powered.

Turn this off with Config.Power.Enabled = false.

👃 Smell

Flowering plants smell. On-duty police walking near a grow get a hint and a direction ("a strong smell coming from the north-east"). The bigger the grow, the further the smell carries.

  • Lockups with several flowering plants smell around the entrance.
  • People who just smoked a joint, blunt or bong smell of it for a while (vapes and edibles don't).
  • A Carbon Filter removes the smell from plants around it.

Settings: Config.Smell.

🚨 Theft Protection

Anyone who isn't the owner (or a lockup key holder) can still harvest a plant, but it takes longer and gives less (Config.Theft).

  • Motion Alarm: rings out loud with a flashing red light and alerts the owner with a map blip.
  • Trail Camera: records who did it (man or woman, face covered or not) and the plate of the car parked nearby. The owner checks the footage on the camera.

Both also trigger when police destroy a plant.

⚙️ New Equipment

ItemTypeNotes
weed_generatorgeneratorPowers lights in its radius, needs fuel_can
carbon_filterfilterHides the smell nearby
grow_alarmalarmRings and alerts the owner
trail_cameracameraRecords thieves

All are in Config.Equipment.Types and placed with the gizmo like the other equipment.

On this page