CityRP Documentation Repository

core.plugins.giveprops.sv_init

Give Prop Limit Serverside. See GH #1478.

PROP_OFFER

2 functions · 2 fields Source ☍

A pending /giveprops offer awaiting the recipient's response.

Functions

ServerPROP_OFFER:Matches(giver, amount) → booleanSource ☍

Whether this offer still matches the given giver/amount.

Parameters

Returns

  1. boolean
ServerPROP_OFFER:New(giver, amount) → PROP_OFFERSource ☍

Create a new pending offer.

Parameters

  • giverPlayerThe player offering the prop limit.
  • amountnumberAmount of prop limit being offered.

Returns

  1. PROP_OFFER

Fields

ServerPROP_OFFER.amountSource ☍

Amount of prop limit being offered.

ServerPROP_OFFER.giverSource ☍

SteamID64 of the player offering the prop limit.