cityrp_weedpot
Weed pot grow loop: tent-gated care, moisture/light quality, trim harvest.
- ServerENT:AddMoisture(ply, amount) → booleanSource ☍
-
Waters the plant (watering can SWEP). HUD shows moisture — no chat spam.
Parameters
- plyPlayer
- amountnumber?Moisture to add this pulse.
Returns
- boolean
- ServerENT:AdvanceStage()Source ☍
-
Advances one growth stage when the stage timer fires.
- ServerENT:CancelTrim(reason)Source ☍
-
Cancels an in-progress trim session.
Parameters
- reasonstring?
- ServerENT:ComputeGrowQuality() → numberSource ☍
-
Computes provisional quality from care meters at harvest time.
Returns
- number
- ServerENT:FinishTrim(ply) → booleanSource ☍
-
Finishes a successful trim minigame and grants wet bud.
Parameters
- plyPlayer
Returns
- boolean
- ServerENT:GetCareStatusTip() → stringSource ☍
-
Builds a one-line care status for Use / notify feedback.
Returns
- string
- ServerENT:KillPlant(reason)Source ☍
-
Resets the pot after harvest or death. Seed is NOT returned on death.
Parameters
- reasonstring?
- ServerENT:MoistureThink()Source ☍
-
Drains moisture on a short interval (also while out of tent — growth stages stay frozen).
- ServerENT:StartGrow() → boolean, string?Source ☍
-
Starts a planted grow cycle after a seed is accepted. Does not consume the seed — caller removes it only on success.
Returns
- 1boolean
- 2string?
- ServerENT:TrimHarvest(ply) → booleanSource ☍
-
Starts the trim minigame for a ready plant. Harvest completes on client success net.
Parameters
- plyPlayer
Returns
- boolean
- ServerENT:UpdateAmbientLight(c, inTent)Source ☍
-
Updates ambient UV light on this pot (empty pots still preheat). Only the UV welded into this pot's tent counts — no range / LOS bleed into neighbours.
Parameters
- ctableweed config
- inTentboolean
- Server_Source ☍
- ServerENT._TrimDeadlineSource ☍
- ServerENT._TrimmingSource ☍
- ServerENT._TrimPlayerSource ☍
-
The player metatable, with CityRP's own additions to Garry's Mod's
Player. - ServerENT.amtSource ☍
- ServerENT.completedCycleSource ☍
- ServerENT.goodLightTicksSource ☍
- ServerENT.goodMoistureTicksSource ☍
- ServerENT.lightamtSource ☍
- ServerENT.moistureScoreStartsAtSource ☍
- ServerENT.moistureScoreTicksSource ☍
- ServerENT.nextCareThinkSource ☍
- ServerENT.nextMoistureThinkSource ☍
- ServerENT.outOfTentSinceSource ☍
- ServerENT.readyAtSource ☍
- ServerENT.stageSource ☍
- ServerENT.totalCareTicksSource ☍