Garry's Mod

Garry's Mod

33 ratings
ruisu's Bounty System
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Fun, Roleplay, Realism
File Size
Posted
Updated
18.885 KB
20 Nov, 2021 @ 9:40am
1 Dec, 2021 @ 6:47pm
6 Change Notes ( view )

Subscribe to download
ruisu's Bounty System

Description
Make your top fraggers targets with this addon!
ruisu's Bounty System is a fully customisable addon that adds a mechanic similar to the mental state from GTA V. Players who surpass a certain killstreak will be marked with a bounty, and can be seen by anyone within range making them a target. Killing someone with a bounty will reward you with both XP and money.

HUD Indicators

First person indicator. No bounty

First person indicator. Has bounty.

Third person indicator. Has bounty

Milestones!

In the config, you can define an infinite amount of milestones - which when reached will grant rewards such as money and XP. Milestones can be disabled, and when done so players can define a simpler value for whenever a player kills someone when they're on a streak.

Functions
Should you wish to tinker with the addon, or integrate it into another addon I have added functions to make it easier to do so.

ply:RBSHasBounty() -- returns true or false ply:RBSSetBounty(bool) -- sets the bounty value ply:RBSGetKillstreak() -- returns the player's current killstreak ply:RBSSetKillstreak() -- sets the killstreak value ply:RBSIncrementKillstreak() -- increments the killstreak by one ply:RBSGetCurrentMilestone() -- returns the player's current milestone number

Modularity
I've designed the addon with updates in mind, so if you wish to add features just download the source code from GitHub and create a new Lua script under the "modules" folder. The addon will automatically detect this script.

Current Addon Support
  • DarkRP
  • DarkRP Levelling System
  • GlorifiedLeveling
Feel free to contact me if you'd like me to integrate support with any other addons!

Config


Gamemode Support
Currently the addon only supports DarkRP and Sandbox. By default, the addon is configured for use with DarkRP - in order to change this download the GitHub[github.com] version and disable "isdarkrp" in "ruisu_bounty_system/lua/ruisu_bounty_system/sh_config.lua".

In Sandbox, showAllBounty and giveAllBounty are best kept as "true", as these are designed primarily for DarkRP so you may run into problems with these disabled.

Planned Updates
  • Language Support
  • Reworked HUD
  • Advanced Milestones
  • NPC Support - Easy to do just not required right now!

The source code[github.com] is covered by the MIT License[en.wikipedia.org]. You can freely edit this code, but please give credit.
29 Comments
jdmp3 9 May, 2024 @ 10:08pm 
support for background npcs would make it so fun to use
blazphemur 1 Aug, 2022 @ 6:25am 
--> [Ruisu's Bounty System] <--
[ruisu-bounty-system-main] addons/ruisu-bounty-system-main/lua/ruisu_bounty_system/sh_config.lua:10: attempt to index global 'rcs' (a nil value)
1. unknown - addons/ruisu-bounty-system-main/lua/ruisu_bounty_system/sh_config.lua:10
2. include - [C]:-1
3. load - addons/ruisu-bounty-system-main/lua/ruisu_bounty_system/sv_base.lua:34
4. unknown - addons/ruisu-bounty-system-main/lua/ruisu_bounty_system/sv_base.lua:40
5. include - [C]:-1
6. unknown - addons/ruisu-bounty-system-main/lua/autorun/ruisu_bounty_system_load.lua:6
He Who Milks Furries  [author] 17 May, 2022 @ 2:18pm 
If you link me to their documentation I can add support for nMoney
Crigence 13 May, 2022 @ 3:38am 
Great add-on, but I wish it supported nMoney, honestly. That'd be superb
He Who Milks Furries  [author] 6 Mar, 2022 @ 2:56pm 
Just set XP rewards to 0. The addon automatically detects if the XP system supported is found or not, so if it's not on the server the XP functions won't be called.
blazphemur 6 Mar, 2022 @ 6:09am 
Hey there I'm adding this to my server and starting to configure it. My question is, since I'm not using an XP system right now, do I remove the XP line from milestones or do I just set xp rewards to 0?
blazphemur 17 Feb, 2022 @ 9:34pm 
awesome! thank you so much
He Who Milks Furries  [author] 15 Feb, 2022 @ 6:09am 
I'll have a look at possibly integrating it next update, I'm currently working on a new way to accept and view bounties.
blazphemur 14 Feb, 2022 @ 1:31am 
Also ply:NotifyBRCS( "" ) to notify with the credit store
blazphemur 14 Feb, 2022 @ 1:28am 
receiver:AddBRCS_Credits( credits ) is what I found, credits being a number.