GCMod

PED System

Core overview and runtime behavior for gcm_pedSystem.


Overview

gcm_pedSystem manages persistent and temporary player PED assignments with:

  • Admin panel to give/set/remove PEDs.
  • User menu for allowed PED selection.
  • Optional forced spawn PED per player.
  • Persistence in MySQL table.

Core Flow

  1. Resource detects framework and loads stored PED cache.
  2. Player load checks if a forced PED exists and applies it.
  3. Admin can manage player PED list through ox_lib menus.
  4. Changes are persisted to DB JSON payload per player identifier.

Integrations

  • Framework auto-detection: qb-core / es_extended
  • ox_lib for callbacks/menu
  • oxmysql for persistence