CityRP Documentation Repository

cityrp_weedpackager

Packaging station (server): deposits materials onto the table for a fill session.

Functions

ServerENT:BeginOrResumeSession(ply) → booleanSource ☍

Deposits materials from the player onto the table and opens/resumes UI.

Parameters

Returns

  1. boolean
ServerENT:ClearDecor()Source ☍

Removes tabletop session props.

ServerENT:ClearSession()Source ☍

Clears session after product is taken; does not refund (caller handled inventory).

ServerENT:FillOne(ply) → booleanSource ☍

Fills one bag on the table (server-authoritative).

Parameters

Returns

  1. boolean
ServerENT:FinishForPlayer(ply) → booleanSource ☍

Finishes the session: grant bagged weed, refund unfilled materials.

Parameters

Returns

  1. boolean
ServerENT:RefreshDecor()Source ☍

Spawns / refreshes the tabletop prop layout for an active session.

ServerENT:RefundRemainder(ply)Source ☍

Returns leftover dried bud + baggies to a player (or drops if invalid).

Parameters

ServerENT:RefundSessionToWorld()Source ☍

When the station is destroyed mid-session, try to refund to the last operator.

ServerENT:ReleaseOperator(ply)Source ☍

Detaches the current operator without clearing table materials (death / UI close).

Parameters

ServerENT:SyncSessionVars()Source ☍

Syncs networked session HUD fields from _Session.

Tables

ServerENT._DecorSource ☍

Fields

ServerENT._SessionSource ☍