CityRP Documentation Repository

core.plugins.generic.sv_init

Name: "sv_init.lua". Product: "CityRP 2 (Roleplay)".

Functions

ServerDoTakePetrolOrBattery(vehicle, player)Source ☍

Parameters

  • vehicleany
  • playerany
ServerGetAmmoCountByWeapon(player, weapon) → integerSource ☍

Parameters

  • playerany
  • weaponany

Returns

  1. integer
ServerGetWeaponAmmoType(weapon, hrname, itemid) → integer|unknownSource ☍

Parameters

  • weaponany
  • hrnameany
  • itemidany

Returns

  1. integer|unknown
ServerHasWeaponAmmoType(weapon) → booleanSource ☍

Parameters

  • weaponany

Returns

  1. boolean

Fields

Servercityrp.configuration.Default TaxSource ☍
ServerNotifyTimeSource ☍

ChainOfCommand

2 fields Source ☍
ServerChainOfCommand.demoteSource ☍

Teams the leader may /demote.

ServerChainOfCommand.promoteSource ☍

Teams the leader may hand leadership to with /makeleader.