ESX [ESX] Organizations System

SaifNeon

Administrators
Joined
Apr 25, 2022
Messages
916
Credits
48,853

:oncoming_police_car:
ESX Organization System | STAR Points, Upgrades, Vehicles & Logs

A powerful and immersive FiveM ESX-based organizational system built for roleplay servers with mafia/gang-like groups. It provides a dynamic way to manage upgrades, vehicles, storage, and competition between groups using STAR points.

Please, Log in or Register to view URLs content!

Please, Log in or Register to view URLs content!

:sparkles:
Features

  • :dart:
    STAR Points system (earnable via exports)
  • :hammer_and_wrench:
    Upgrade shop (vehicle upgrades, expandable safe weight and changing organization’s plates)
  • :minibus:
    Organization van/shop system with animations
  • :red_car:
    Organization vehicles with cinematic camera and return logic
  • :package:
    Safe with expanding weight capacity (uses ox_inventory)
  • :bar_chart:
    Leaderboard system with live ranking
  • :jigsaw:
    Fully configurable via config.lua
  • :bell:
    Discord logging for major actions

Screenshot


:receipt:
Admin Commands (CONFIGURABLE IN CONFIG.LUA)

/addstarsAdd STAR points to a society
/removestarsRemove STAR points
/checkstarsCheck current STAR balance
/resetplatesReset organization plates
[th]
Command​
[/th][th]
Description​
[/th]​
All commands require admin permissions.

:minibus:
Organization Shop (Van System)

  • Players can access the shop by walking to the organization van.
  • Uses ox_target for interaction.
  • Includes animations when opening the menu.

:clapper:
Vehicle Handling Animations

  • When spawning a vehicle: cinematic camera plays + visual effects + discord log.
  • When returning vehicle: animation + notification with Discord log.

:outbox_tray:
Exports

Export these in other scripts to interact with the system:
Code:
[I][COLOR=rgb(153, 153, 153)]-- Get upgrade level[/COLOR][/I]
exports[[COLOR=rgb(181, 189, 104)]'coii_organizacije'[/COLOR]]:getUpgradeLevel([COLOR=rgb(181, 189, 104)]'society_name'[/COLOR], [COLOR=rgb(181, 189, 104)]'vehicle_mods'[/COLOR])

[I][COLOR=rgb(153, 153, 153)]-- Remove STAR points[/COLOR][/I]
exports[[COLOR=rgb(181, 189, 104)]'coii_organizacije'[/COLOR]]:removePoints([COLOR=rgb(181, 189, 104)]'society_name'[/COLOR], 10)

[I][COLOR=rgb(153, 153, 153)]-- Add STAR points[/COLOR][/I]
exports[[COLOR=rgb(181, 189, 104)]'coii_organizacije'[/COLOR]]:addPoints([COLOR=rgb(181, 189, 104)]'society_name'[/COLOR], 20)

:satellite:
Discord Logs

This system logs the following events to your Discord webhook:
  • Vehicle spawned
  • Shop location (coords)
  • Upgrade purchased
  • Purchasing custom plate prefix
  • STAR points added/removed
  • Leaderboard refresh
Example webhook config in sv_config.lua:

Code:
Config.Webhook = [COLOR=rgb(181, 189, 104)]'https://discord.com/api/webhooks/...'[/COLOR]
Config.LeaderboardWebhook = [COLOR=rgb(181, 189, 104)]'https://discord.com/api/webhooks/...'[/COLOR]
Config.ShopWebhook = [COLOR=rgb(181, 189, 104)]'https://discord.com/api/webhooks/...'[/COLOR]

:bar_chart:
Leaderboard Logging

Leaderboard is updated automatically and logs the top organizations and their STAR point balance to a Discord webhook when refreshed.
  • Triggered manually or on interval
  • Displays: Top 5 organizations by points
  • Uses ox_lib context menu for in-game viewing

:floppy_disk:
Dependencies


:wrench:
Installation

  1. Place the resource in your resources folder.
  2. Add to server.cfg:
    Code:
    ensure coii_organizacije
  3. Import the included SQL file into your database.
  4. Configure everything in config.lua.
 
Back
Top Bottom