🕵️‍♂️Usage

  • Player Connecting

    • Placeholder values shown on FIRST JOIN only.

          // Placeholder values shown on FIRST JOIN only.
          // These values are DISPLAY-ONLY – players do NOT receive this money or job in-game.
          firstJoin: {
              money: 12500,           // Money to display
              job: "Unemployed"      // Job placeholder
          }
      };
    • NUI receives this via def.handover().

  • Loading Screen

    • html/index.html reads config.js to:

      • Show background (video or image).

      • Spin through songs with cover art.

      • Render social buttons.

      • Display stats: Name, $bank, Job.

  • Client Events

    • Listens for ESX/QBCore events (playerLoaded, setAccountMoney, setJob) to push updated stats via SendNUIMessage.

  • Server Events

    • On playerDropped / OnPlayerUnload, stores the last char’s name, money, and job back into your risk_lastchar table.

Last updated