CityRP Documentation Repository

core.plugins.lite_character.cl_editor

Lite Character System -- the right-click editor overlay. An independent DFrame drawn on top of the still-open F1 menu (mirrors the overlay pattern in core/derma/cl_customizationMenu.lua), styled to match core/plugins/phonebook/cl_init.lua -- the project's reference for a from-scratch dark Derma menu (frame chrome, row/entry styling).

Functions

Clientcityrp.litecharacter.BuildEditorFrame(slot, record, populated)Source ☍

Builds (replacing any existing one) the editor overlay for a slot.

Parameters

  • slotnumber
  • recordtableSee cityrp.litecharacter.EmptyRecord for shape.
  • populatedbooleanWhether this slot has an actual saved row -- the Delete button only shows when true.
Clientcityrp.litecharacter.OnDeleteResult(slot, ok, reason)Source ☍

Parameters

  • slotnumber
  • okboolean
  • reasonstring
Clientcityrp.litecharacter.OnSaveResult(ok, warnings)Source ☍

Parameters

  • okboolean
  • warningsstring[]
Clientcityrp.litecharacter.OnSlotData(slot, record, populated)Source ☍

@param record — See cityrp.litecharacter.EmptyRecord for shape.

@param populated — Whether this slot has an actual saved row (distinct from a genuinely unset slot, which still arrives as a blank record).

Parameters

  • slotnumber
  • recordtableSee cityrp.litecharacter.EmptyRecord for shape.
  • populatedbooleanWhether this slot has an actual saved row (distinct from a genuinely unset slot, which still arrives as a blank record).
Clientcityrp.litecharacter.OpenEditor(slot)Source ☍

Requests a slot's saved record from the server. The editor is built once cityrp.litecharacter.SlotData answers (see cl_init.lua's net receiver).

Parameters

  • slotnumber