[ESX] byK3's CITYHALL - Namechange, Social Money, Marriage, Playtime Tracker + Rewards, Stats, Leaderboard & Exports - v2 COMING SOON

Would be a very nice Feature

1 Like

@madeK3 As an idea, as soon as you set the Society function to False in the config, the entire category ingame should no longer be found in the script. Alternatively you have to manually exclude everything

1 Like

Hey, thanks for the feedback! I’ll look into it and make sure that if it’s disabled in the config, it won’t show up in-game. And yes, the idea of a “World Statistics” or “Leaderboard” sounds great. I’ll definitely consider implementing it. Thanks for the suggestion!

1 Like

Good idea, should it just list bank or total money (cash+bank) ?

Is it possible to set if there is a blip that you can find? Because for me it shows neither blip nor NPC

Sorry for my english

1 Like

I will add blip function

Like i said. I don´t see the marker or the npc. I´ve changed the coordinates. But nothing

1 Like

u have to save and reconnect. The script just works with “playerloaded” ( On connect )

1 Like

ahh thank you :slight_smile:

1 Like

:scroll: Cityhall Changelog:

:wrench: General Improvements:

  • Removed debugs from the spawnNPC() function.
  • Added a blip for Cityhall. Configurable via the Config.

:arrows_counterclockwise: Society Function:

  • When enable = true, the option is displayed in the menu.
  • When enable = false, the option is hidden from the menu.

:bar_chart: Statistics Enhancement:

  • Added display of the phone number.
  • Player’s height is now displayed
  • Player’s job grade is now displayed.

:trophy: Leaderboard:

  • New! Showcase top players in various categories:
    • Richest players.
    • Players with the most playtime.
    • Players with the most kills.
    • Players with the most deaths.
  • Configurable via the Config: Leaderboard can be turned on or off.
  • Display limit can be set in the Config (e.g., Top 5).

:hammer_and_wrench: Technical Optimizations:

  • Moved the tracker for kills and deaths entirely to the server side.
  • Fixed an associated SQL error related to the tracker.

:inbox_tray: Download:

Link to the GitHub repository

3 Likes

:scroll: Cityhall Changelog:

:wrench: General Improvements:

  • Code enhancements for server-side stats retrieval.
  • Total number of owned vehicles and houses are now displayed.
  • :bug: Fixed a bug where, with needItem = true, only the item was removed but not the money. Now, if needItem is enabled, both the item and the money are deducted.
  • Playtime Tracker now also working after resource restart (big thanks to: WhereiamL)

:hammer_and_wrench: Config Enhancements:

  • Introducing Config.Stats: Customize your database tables and columns to make the integration of the script even smoother. This is a step forward in making the script truly plug & play.

:tada: [NEW FEATURE] Playtime Rewards:

🌟 Introduction: We're thrilled to introduce Playtime Rewards! This feature rewards players based on their total playtime, enhancing their gaming experience.

🛠️ Configurability: The power is in your hands! With our flexible configuration, server owners can tailor rewards to their liking. Want to give players cash after just 10 minutes of playtime? Or perhaps a unique item after 30 minutes? It's all possible. And if you ever feel like it, you can easily disable this feature with a simple `enable = false`.

⏰ Comprehensive Playtime Tracking: We value every second you spend in the game. That's why our system doesn't just look at the current session. Instead, it considers your entire playtime, ensuring you get rewards for all the time you've invested.

🎉 Hassle-Free Rewards: The best part? Players don't have to jump through hoops to claim their rewards. Once they hit a milestone, the reward is automatically added to their account. No fuss, no hassle!

:inbox_tray: Download:

Link to the GitHub repository

2 Likes

[HOTFIX] Playtime Rewards Bug Resolved!

Resolved an issue with the Playtime Rewards feature. Players should now receive rewards accurately based on their playtime.

Note: Future updates might be delayed as I am focusing on other projects. Thanks for your understanding and continued support.

:inbox_tray: Download:

Link to the GitHub repository

Yes with a little changes like ESX.GetExtendedPlayers to ESX.GetPlayers and instead import u need to laod it in script directly

nice scripts, will be cool to add ox_target integration

Add me on discord byK3

I will help you out

Huch?? Add me on discord please: byK3

I will work next week again on cityhall, the project I was working on is now finished & released:

1 Like

What does that mean?

1 Like

Social Money wasnt able to remove the player, you can DM me on discord and we can look into it:

byk3