Skip to content

wtf_group Documentation

Complete documentation for the wtf_group resource — a FiveM group/crew management system with a full desktop-style tablet UI.

Documentation Structure

Tablet System

  • Tablet Overview — Architecture, features, how it works
  • Tablet Architecture — Data flow, NUI bridge, context providers
  • Tablet Shell — Desktop, Taskbar, StartMenu, Window Manager, System Tray
  • App Development — How to create, register, and deploy tablet apps
  • Settings System — Centralized settings, themes, color pickers, DB sync
  • Database Sync — MySQL tables, data flow, localStorage fallback
  • VPN Shield App — VPN proxy system, license keys, exports, admin commands
  • Weather App — Live weather display, animated particles, Renewed-Weathersync integration, admin controls
  • Auction System — Auction marketplace, bidding, wallet, black market
  • Contracts App — Contract board, global locking, stock, queue, exports

Lua (Server & Client)

UI (React)

API Reference

Architecture at a Glance

┌─────────────────────────────────────────────────────┐
│                    FiveM Client                      │
│  ┌──────────┐  ┌──────────┐  ┌──────────────────┐  │
│  │  Bridge   │  │  Client   │  │  NUI (React UI)  │  │
│  │ (QBX/QB/ │  │  Lua      │  │  ┌────────────┐  │  │
│  │  ESX/     │◄─┤  tablet   │◄─┤  │ TabletShell│  │  │
│  │  Stand)   │  │  sync     │  │  │  Desktop    │  │  │
│  └──────────┘  │  nui      │  │  │  Taskbar    │  │  │
│                │  blips     │  │  │  Windows    │  │  │
│                └─────┬──────┘  │  │  Apps       │  │  │
│                      │         │  └────────────┘  │  │
│                      │         └──────────────────┘  │
├──────────────────────┼──────────────────────────────┤
│                 FiveM Server                         │
│  ┌──────────┐  ┌─────┴──────┐  ┌────────────────┐  │
│  │  Bridge   │  │  Server    │  │  MySQL (oxmysql)│  │
│  │  (QBX/QB/ │◄─┤  Lua       │◄─┤  20 tables     │  │
│  │  ESX/     │  │  database  │  │                │  │
│  │  Stand)   │  │  group     │  └────────────────┘  │
│  └──────────┘  │  tablet    │                       │
│                │  sync      │                       │
│                └────────────┘                       │
└─────────────────────────────────────────────────────┘

Data Flow Summary

  1. Player types /tablet → Client tablet.lua opens NUI focus
  2. React UI mounts → Loads settings from DB (async) with localStorage fallback
  3. Player opens appAppContext creates window, renders component
  4. App saves datadbStorage.js sends NUI callback → Client forwards to Server → MySQL
  5. Server sends dataTriggerClientEventSendNUIMessage → React window.addEventListener('message')
  6. Player closes tablet → NUI focus released, all windows preserved in memory

AIFAZI — FiveM Resources