[RELEASE] esx_kingofthehill

esx_kingofthehill

Group area capturing/defending. Made this for our roleplay server as a gang war mechanic (currently only supports one area of capture as that’s all we wanted) and decided to release it

Very quick demo of joining, starting and cancelling a capture due to leaving the area (with RequiredCapturersMin set to 1 for demo sake)

:hammer_and_wrench: Requirements

  1. ESX (requires police and ambulance jobs if the BlockEmergencyServices config value is true in the config)
  2. esx_phone (for police dispatch messages)

:straight_ruler: Setup

  1. Run the db.sql file on your DB to create the 2 required tables (remove item insert if your item already exists)
  2. Put the mod in your resources folder and ensure it

:thinking: How it works (with default settings)

  1. A group of minimum 3, maximum 5 join a capture group when in the area
  2. When ready, one member can start the capturing (neutral capture only takes 1 minute. Capturing when it is already owned by someone else, takes a specified time based on how many owners are online)
  3. If none of the existing owners are online, it cannot be captured
  4. A blue wall (opaque marker) shows the full area of capture
  5. During both the grouping and capturing stages, anyone that leaves the area of capture will be removed from the group or capture. The same applies if they die.
  6. If being captured, all current owners that are online will be notified and the capturers will be displayed as red skull blips on their maps during the entire capture process making it almost impossible for capturers to simply hide in bushes etc.
  7. A progress indicator of the capture will be visible to capturers and passerby’s
  8. Capturing is cancelled when all capturers are taken down or leave the area
  9. If the capture is successful, any survivors in the capturing group will be given a code to join the payroll as the new kings of the hill and all old owners are removed from payroll.
  10. Anyone can use the code, not just the capturers
  11. Police are notified via dispatch (esx_phone) at the beginning and end of the capturing, indicated as a turf war.
  12. A cooldown is set after a successful capture
  13. A reward item is given to current online owners which can be set in the config, as well as the amount given and the interval at which rewards are to be given (make sure whatever item is used as a reward exists in your items table in your DB)

:desktop_computer: Commands

/payroll join Attempt to join the capture group
/payroll leave Attempt to leave the capture group
/payroll start Start the capturing when group is ready
/payroll owners Displays the current amount of owners (online and offline total)
/payroll {code} Joins a player to the payroll if the code is valid

:open_file_folder: Git

Project Repo: esx_kingofthehill
Bugs & Feature Requests: Issues

:dark_sunglasses: Planned Updates

Multiple areas: Currently this mod only supports one area for capture (was all we needed for our server) - multi area support might come later

9 Likes

Nice Job!
i think it would be better if you prevent players from capturing another zone if the zone owners are not online ! its like stopping player from doing rubbery when there isn’t any police on the server

1 Like

Can anyone have the video

[image]

preview would be good.

1 Like

Video,Image…???

@Horam.sh @Games1 @Ege_Erdinc Added a very short demo vid

@rezaCyber That is how it works, sorry I didn’t mention it in the description, but yeah, if no owners are on, it cannot be captured. Updated the description

1 Like

It would be good to see a blip on the map like “Vagos Territory” if the Vagos captured it.

Nice work!

1 Like

Really awesome mod, use this on my server and the players love it

1 Like

i think that you should use the gang (job2) instead of create a group. It will be more like a turf war between gang and gang

The reason for not using gang jobs was to enable anyone on the server to take part, not limited to gangs, you’re welcome to fork the repo and make whatever adjustment you’d like for your server :wink:

1 Like

I would like to make it like that: If you have an own territory than you will get the ‘payout’ only when you are typed “payroll award” on the territory. So it won’t transport the items to you you have to request the item at the territory.

The reason it isn’t like that is because on my server, the reward item is reputation which we use to buy certain weapons and items. You’re more than welcome to fork the repo and do with it what you want, if you re-release though please just credit my original work :wink:

1 Like

Best Mod ever !!! Amazing work you so talented

2 Likes

Is there any way for it to work with gcphone?

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.