CityRP Documentation Repository

core.plugins.tesla_charger.entities.cityrp_tesla_homecharger.shared

Tesla Homecharger (shared)

Functions

SharedENT:BaseChargingPrice() → numberSource ☍

The configured base recharge cost, as a whole number.

Returns

  1. number
SharedENT:GetChargerOwner() → Entity|Player|nilSource ☍

Resolves the player who owns this charger (prop-protection aware).

Returns

  1. Entity|Player|nil
SharedENT:GetChargingPrice() → numberSource ☍

Price charged to a driver per 10% of charge, in whole dollars.

Returns

  1. number
SharedENT:OwnerPricingEnabled() → booleanSource ☍

Whether the owner-pricing plugin is loaded.

Returns

  1. boolean