Beammp-Mod-Ui

What’s in the mod?

A bidirectional UI that sends and receives data between the server and JS

A UI that displays your economy statistics on the screen and saves each player’s economy data and language preferences.

Identifies players speeding (speed limit can be easily set).

Identifies players who are drunk or driving erratically (the “zigzag” values ​​can be adjusted as needed).

Separate language files - add any language you want.

Sends messages to players at regular intervals (timing and content can be customized).

Assigns roles to players based on skins - currently cops and civilians, but thi

s can be changed.

Note: The mod is primarily intended for learning purposes and to save time for developers who can learn from it how to perform the functions it offers, so I tried to add as many explanations as possible within the code.

Special thanks to Beams Of Norway who brought me the code for testing the speed and zigzag

bar

1 Like

This looks quite cool however didn’t tested it yet.

Is there any way to get money with example jobs, missions etc?

Not. However, if you create specific missions or jobs, you can hook them into the economy system. You’ll need to use the server-side code to send and store the economy data, and the client-side mod to display it through the UI. That way players can see and track their earnings.

Alright, thanks for letting me know

Version 1.3.0

A huge update with major additions

Details about the mod in its new version:

Here’s a breakdown of everything the mod has to offer:


Core System: A Stable and Dynamic Economy :money_bag:

The foundation of the mod is a robust yet simple economy system that efficiently manages player funds.

Persistent Player Accounts: Each player’s account is saved on the server, so their money is preserved between sessions.

Passive Income: You can configure a fixed amount of money to be given to players for every minute they spend on the server, rewarding them for their time.

Player-to-Player Payments: Players can easily transfer money to each other using the /pay command.

Clean User Interface (UI): A modern and clean UI displays the player’s balance and other important information, which can be easily toggled on and off.


Advanced Roleplay System: Civilians vs. Police :oncoming_police_car:

This is the heart of the mod, a system that introduces action and tension with constant interaction between two roles:

Automatic Role System: The mod automatically detects if a player is driving a police vehicle (based on the vehicle’s skin) and assigns them the Police role. All other players are Civilians.

“Wanted” Status: Civilians can become “wanted” by performing risky maneuvers, which kicks off a thrilling chase.

Speeding: Exceeding a configurable speed limit will put the player in a “wanted” state.

Reckless Driving (Zigzag): Making a series of sharp, consecutive turns at speed will also trigger the “wanted” status.

Evasion & Rewards for Civilians:

When a civilian is “wanted” and a police officer is nearby, they begin earning money for every second they successfully evade capture.

If the civilian survives the entire “wanted” timer without being caught, they receive a large evasion bonus.

Enforcement & Rewards for Police:

Police officers receive a cash bonus for every second they remain in proximity to a “wanted” civilian.

Busting: If an officer forces a wanted civilian to slow to a near-stop for a few seconds, the civilian is “busted.” They lose their “wanted” status and are fined. The officer who made the bust receives a large bust bonus.


Full Customization & Easy Administration :hammer_and_wrench:

A primary goal was to allow server owners to easily customize every detail of the mod.

Central config.json File: All of the mod’s settings are located in a single, easy-to-edit file. You can change almost any value:

Cash amounts (starting money, per-minute pay, bonuses, fines).

Speed limits, wanted timers, and cooldowns.

Police detection ranges and bust parameters.

Graphical Config Editor (GUI): Included with the mod is config_editor.py, a visual editor that allows you to change all settings in a user-friendly interface without needing to touch the code directly.

Enable/Disable Features: You can toggle every major feature (the police system, speed bonus, etc.) on or off through the configuration file.

Multi-Language Support :globe_with_meridians:

The mod was designed to be global, with built-in support for multiple languages and a simple system for adding more.

Built-in Support: The mod comes ready with support for English, Hebrew, and Arabic.

In-Game Language Switcher: Players can change their UI language in real-time from an in-game menu.

Simple Translation System: All texts are managed in simple .json files, making it very easy to add support for new languages.

I wrote this mod as an open-source project, with the goal of allowing server owners to learn from it, take parts that interest them, and adapt them to the unique needs of their servers.

I invite you to download the mod, try it out, and dive into the source code. I hope it serves as a great foundation for new servers and helps other developers in the community learn and create amazing things.

Feel free to ask questions or provide feedback!

1 Like