CityRP Documentation Repository

Mining

Mining plugin - client. Owns the short-lived clientside props the mining effects throw around: rubble that falls and fades, and ore that flies from a deposit to the player who mined it. Both are capped, always removed within a few seconds, and switched off together by cityrp_mining_props.

Functions

EFFECT:Init(data)Source ☍

Bursts the rubble, raises the dust, plays the break and flies the final payout.

Parameters

EFFECT:Render()Source ☍

Nothing to draw beyond the props and particles.

EFFECT:Think() → booleanSource ☍

Everything is handed to props, particles and sounds in Init, so the effect ends at once.

Returns

  1. booleanAlways false.

Fields

EFFECT.bornSource ☍
EFFECT.dieTimeSource ☍
EFFECT.labelSource ☍
EFFECT.labelPosSource ☍

MiningTemporaryProp

7 fields Source ☍
ClientMiningTemporaryProp.colourSource ☍

Draw colour, whose alpha is rewritten as the prop fades.

ClientMiningTemporaryProp.departsSource ☍

CurTime a flying prop set off.

ClientMiningTemporaryProp.entitySource ☍

The clientside prop or model.

ClientMiningTemporaryProp.expiresSource ☍

CurTime the prop is removed.

ClientMiningTemporaryProp.fadeStartSource ☍

CurTime the fade begins.

ClientMiningTemporaryProp.fromSource ☍

Where a flying prop set off from.

ClientMiningTemporaryProp.targetSource ☍

The player a flying prop is heading for.