CityRP Documentation Repository

cityrp_constructionworker

Construction Worker NPC - client. The sell menu the NPC opens, and its look-at panel.

Functions

SharedENT:SetAutomaticFrameAdvance(bUsingAnim)Source ☍

Called by the engine to tell the entity whether it should animate itself.

Parameters

  • bUsingAnimbooleanWhether the entity is currently playing an animation.
Clientnpc_mineralsellmenu()Source ☍

Opens the NPC's top-level menu, offering the rock and coal sell flows. Global because net.Receive below and openSellStep's Return button both call it.

Fields

SharedENT.AutomaticFrameAdvanceSource ☍

This entity will animate itself.

SharedENT.DescriptionSource ☍
SharedENT.JobSource ☍
SharedENT.NameSource ☍