Price
UnknownA script by CritteR
Price
UnknownCritteR’s Busted! Minigame is my interpretation of the classic GTA IV multiplayer event: Busted.
It’s Cops ‘n’ Robbers style minigame, where one player (the Robber) has to evade being caught by the other players (the Cops) for a set amount of time, before escaping to a final checkpoint.
There are 3 player types for the minigame:
The resource was built and tested on the latest DLC (b3407). All the entities are spawned server-side, all the routing buckets used are set to lockdown mode “strict” or “relaxed” (when AI traffic is allowed in the lobby).
It supports Pure Mode, Entity Lockdown and Network Ownership Restriction.
It is compatible with regular vMenu servers and with RP frameworks. It should be compatible with you “guardian” resources, but don’t quote me on that. I don’t use those. (client-side scripts use SetEntityInvincible() and FreezeEntityPosition(), plus camera functions.)
As with all my scripts, every UI and HUD element is fully opened and commented, so you can modify it to fit your server. In addition to that, the resource opens a couple of functions and events that help you integrate this minigame into your server seamlessly:
| CalculatePlayerPoints(player) | function | Logic function used to calculate the points won by the player at the end of the minigame. player is an array. |
| PreferredPlayerName(source) | function | Function that provides the player source, and expects a string return, which will be used as the player name. |
| IsPlayerAllowedToPlay(source) | function | Function that provides the player source, and expects a bool return, to give the player the permission to play. |
| IsPlayerAllowedRobber(source) | function | Function that provides the player source, and expects a bool return, to give the player the permission to play as Robber. |
| IsPlayerAllowedHeli(source) | function | Function that provides the player source, and expects a bool return, to give the player the permission to play as Heli. |
| IsPlayerAllowedCop(source) | function | Function that provides the player source, and expects a bool return, to give the player the permission to play as Cop. |
| PlayerJoinedTheLobby(source, data) | function | Function that runs whenever a player joins a lobby. |
| PlayerIsOutOfLobby(source, data) | function | Function that runs whenever a player leaves a lobby. |
| & and many more! |
mysql_functions.lua and rewrite the saving / loading functions to suit your needs.client_connection.lua.Multi-lobby support: You can configure multiple lobbies, both Public and Private (password protected), allowing multiple rounds for Busted! to be played at the same time.
Multi-language support: All the texts are available in the sh_locales.lua file, allowing you to add as many languages as you want. Each player can choose their preferred language.
Supports
English and
Romanianby default.
Custom Vehicles support: By default you can configure different vehicle models for Robber and Cops, but with the helper functions in server_connection.lua, you can write your own logic for Robber / Cop vehicles, including the ability to read player vehicles and tuning from the database.
Points System & Leaderboard: The minigame automatically saves player’s games played and won, both for Cop and for Robber match, but also includes a Points variable, which is open for you to write the logic for. By default it gives 3 points when you win, 1 point when you lose, and 1 additional point when you play as Robber.
Feel free to reach out to me on the forums, or through Tebex if you need any help, or have any issues with the script. I will gladly explain to you what to change in order to connect this resource to your server, but I cannot tell you how exactly to connect it to your framework, as I don’t use them.
Lobby Menu:
Gameplay:
Other UX:
| Code is accessible | UI and HUD - YES / Game logic - NO |
| Subscription-based | No |
| Lines (approximately) | ~4500 |
| Requirements | ox_mysql or similar data saving resource |
| Support | Yes |
See what others are saying about this script.
Share your experience and help others.