DarkRP Hitman system help.

So I’m trying to make my own hitman system, nothing fancy just a few lines of code to help me get started.

this is what I’ve already wrote, I know it’s not much but I’m new to Coding and LUA in general so it would be amazing if you guys/gals could help me out.

if (CLIENT) then



concommand.Add(“hit”, function( ply )
ply: print" hit has been placed on #T"

So I want a “Bounty” text to appear above the targeted player’s head, and when he gets killed it gives the specified amount of money to the hitman.

It would be a huge help if you guys directed me to the function commands, thanks in advance :smiley:

Hi mars.el2000,

I see you’re quite new, and it’s good to learn by example, so why not check out DarkRP’s own hitman system to see how that works first. if that’s what you’re interested in doing:

You’ll find the code for it here:

Then, if you’re stuck on what a specific function does, you can check out the Garry’s Mod and DarkRP Wiki’s as follows:


And if it still seems too much, you can always check out a few beginner Lua tutorials, this one for example: https://steamcommunity.com/sharedfiles/filedetails/?id=144938866

Hope that helps