[ESX] esx_tk_bulleteffects - Bullet Effects

esx_tk_bulleteffects

[ Video ]
[ QBCore version ]

About

This scripts adds a new level of realism to your shooting; bullets have certain effects depending on the body part they hit and bullets can be searched for and removed from a player. Script has been tested with ESX V1 Final, but should work with all ESX versions. If not, you can always contact me!

Features

  • Well-optimized
    • 0.00 ms | Idle
    • 0.02 ms - 0.10 ms | In usage
  • Uses FiveM Asset Escrow system, but if there is anything you would like to get changed or added to the editable file, contact me and I can probably change it!
  • Highly customizable
    • Change chances to fall down or stumble
    • Change chances depending on the caliber of the weapon
    • Change how long many bullets needed to prevent jumping, shooting etc.
    • Change how much the bullets slow you down and increase your recoil
    • & much more
  • Exports
    • exports.esx_tk_bulleteffects:removeBulletsMenu() - Opens the menu where you can remove bullets from other players
    • exports['esx_tk_bulleteffects]:healBullets(playerId) - (server side), remove all bullets from a certain player
  • How does it work? (watch video above for a good understanding)
    • Commands
      • /bullets - Shows bullets in your own body parts
      • /showbullets - Shows bullets in the closest player’s body parts
      • /removebullets - Opens the menu where you can remove bullets from other players
      • /healbullets [id] - Command for admins to remove all bullets from a player
    • Shooting at other players will leave bullets in them
    • You can see how many bullets you have in your head, body, left arm, right arm, left leg and right leg
    • Bullets can be removed by EMS (or any other job that is specified in the config)
    • Effects:
      • Legs:
        • Your character will sometimes randomly fall
        • Having enough bullets will prevent you from jumping
        • Bullets will slow you down
      • Body:
        • Your character will sometimes “stumble”
      • Arms:
        • Bullets in arms will increase your recoil
        • Having enough bullets in your right arm will prevent you from shooting
      • Head:
        • Your screen will shake
  • Supports ox_lib
Screenshots

1

2

Config

Requirements

Purchase (11.99€ + VAT)


My other work

Code is accessible No
Subscription-based No
Lines (approximately) ~600
Requirements es_extended, esx_menu_default, mysql-async or oxmysql
Support Yes
3 Likes

Any chance of this turns the bullets into an item that could compliment your evidence script?

1 Like

Great idea. I’ll definitely think about it and write it down in my todo list.

Update 1.0.2

  • New config option Config.AllowedGroups, groups that can run admin commands
  • New config option Config.EMSCanHealBullets, should EMS be able to use the /healbullets command

Update 1.0.5

  • New config option Config.ReviveEvent
  • New config option Config.ReviveRemoveBullets
  • Walking style should now be automatically reset after bullets are removed from your legs

Update 1.0.7

  • Small changes to how bullets are being detected

Update 1.0.8

  • New config option Config.MinMoveRate
  • Added notification when bullets have been removed

Update 1.1.0

  • Added a new config option Config.HeadShakeTime
  • Improved how bullets are registered

Update 1.1.1

  • Changed old ESX event to export

make it for qbcore :open_mouth:

QB version will probably be released at some point.

Update 1.2.0

  • Major improvements and refactoring to code
  • Removed mythic_progbar as a dependency
  • Added config option Config.UseOxLib
  • Utilize statebags to save bullets
  • Simplified data saved to database

QBCore version out now!

(@KhonshuII)

Update 1.2.1

  • Fixed small error with player bullets not being removed
  • Changed bullet removing menu to use ox_lib instead if it was used

Update 1.2.2

  • Added a new server side export exports['esx_tk_bulleteffects]:healBullets(playerId)

Update 1.2.3

  • Add Config.UseOneSyncLegacy

Update 1.2.4

  • Minor changes to code

Update 1.2.5

  • Add bullets as real items that can be analyzed (only works when using ox_inventory and esx_tk_evidence)

Update 1.2.6

  • Fix error caused by latest update when using ox_lib