[FREE] [STANDALONE] JD Headbag

JD Headbag — The Ultimate Open Source Solution!

Tired of overpriced, poorly optimized headbag scripts? JD Headbag is here to save the day!

If you’ve been searching for a solution that’s:

  • Optimized for performance.
  • Open Source, giving you full control.
  • Easy to Use with a simple setup.

Look no further! JD Headbag is the free and community-driven alternative you’ve been waiting for.

Links:


Why Choose JD Headbag?

  • Designed with efficiency in mind — ensures minimal impact on server performance.
  • Fully customizable to fit your server’s style.
  • Backed by an open-source community, allowing you to contribute or adapt it however you need.

Get Involved!

Are you a developer? Want to make this project even better?

  • Star the repository to show your support.
  • Fork it.
  • Submit your improvements via Pull Requests.

Let me know what you think! I’d love to hear your feedback. If you’re a server owner or developer, give it a try and share your experience.

Let’s make FiveM servers better together!

9 Likes

Hey, nice to see youre updating that script but here are some recommendations since youve asked for feedback:

dont use GetPlayerPed(-1) just Cache the player’s ped once instead of calling GetPlayerPed(-1) multiple times. in Gta5 there’s PlayerPedId() which should be used and is also much faster.

( To be fair, I have that old habit too of doing it the old gta4 way lol )

local playerPed = PlayerPedId() – if youre wondering what I mean.

you can improve the iteration by using for i = 1, #players do instead of for _, player in ipairs(players) do. The ipairs loop incurs a slight performance overhead compared to direct indexing.

also Use vector operations for distance calculations instead of native functions like Vdist

Hope I was able to give you some ideas :slight_smile:

Hey Thanks for letting me know didn’t realize there was more overhead with for _, player in ipairs(players) do also ill be looking into vector operations instead thanks for the insight :thinking:, also i will move GetPlayerPed(-1) over to PlayerPedId()

youre welcome mate :slight_smile: just wanted to leave some feedback, hope it helped! reach out if you need help

2 Likes

Nice script! Does it block the person with the head bag from seeing?

Hey! sorry for the late response, but yes it does indeed!

ace perms dont work with this

Hello!, is your Config.useAce set to true?, if not that’ll be the reason… other than that there are no bugs in this repository

Suggestion: making the headbag as an item so those that have the item can put the headbag on the player.