CityRP Documentation Repository

core.plugins.collectables.sv_init

Collectables System

Functions

ServerCalculateCollectablesOdds(rewards) → integerSource ☍

Sums the odds in a rewards table for an event

Parameters

  • rewardsany

Returns

  1. integer
ServerPlayerCollectableDespawned(userid)Source ☍

Called by collectable ents when a player finds them

Parameters

  • useridany
ServerPlayerFoundCollectable(ply, model)Source ☍

Called by collectable ents when a player finds them

Parameters

  • plyany
  • modelany

Fields

Servercityrp.collectablesSource ☍