[RELEASE] Delete Object Gun v2

This is based off a function in the Jordan Menu. Once it’s turned on, you can use any weapon (flashlights, fire extinguishers, tasers, and shotguns work best) and aim at the entity to delete it.

Usage
/delgun - toggles delete object gun
Aim at the entity.

Installation
Install it as any script you would install in a server.

Integrate dogconfig.cfg into your server.cfg. This can either be done by copying the contents into or adding ensure path/to/file/dogconfig.cfg to the server.cfg file.

Shoutout to TehhGerman for making an installation video :slight_smile:

Config
setr dog.onAim "true" # change to false if you want to delete object on gunshot rather than on aim

setr dog.useAce "false" # change to true in order to use Ace permissions

add_ace group.admin dog.delgun allow # if using ace perms, allows delgun command for admin group. change as you need

Download
v2.0
DelObjGun.zip (5.2 KB)

Changelog
v2.0

  • Made /delgun command a toggle
  • Option to delete object on aim or on gunshot
  • Changed permissions system to use Ace
  • Rewrote code so it’s not deprecated and cleaner

Credits
– Credits to @Havoc , @Flatracer , @Briglair , and @WolfKnight179 on forum.cfx.re for helping me create this
– Thanks to Ethan Rubinacci and Mark Curry
– Thanks @Trewilly for the logo

14 Likes

Idk how I helped but no problem, I guess.

Nice release btw.

Lmao I had you in the credits from the version one release. I didn’t want to remove anyone because credit is deserved.

You probably helped me out on the forums somewhere :slight_smile: Thanks

1 Like

I was just looking for the previous version of this script to install. This version came up in the list with perfect timing. :slight_smile:

I have a minor issue (hopefully the only one). For me, at least, the setting to switch between aim and shooting doesn’t make a difference, it seems to be stuck on aim to delete. I have not touched the scripting at all, and only changed the config, both available options.
If it makes any difference, I am using a stun gun, not a standard firearm. (It still deletes entities amazingly well!)

Any help for this?
I mean, regardless of if we can get it fixed or not, I am definitely keeping this resource. Well done! :slight_smile:

2 Likes

Did you run the setr dog.onAim "false" through your server.cfg?

1 Like

… No, I did not.

Welp. I just turned into one of those fools that doesn’t read before installing. Not my usual train of action on new scripts. :smiley:

Added to permissions and server config, it’s perfect now. Thank ye.

Once again, great job, and I hope you don’t get more blind users like me! :smiley:

My apologies for being dumb.

Have noticed something interesting. The tool seems to delete an NPC driving a vehicle before it deletes the vehicle. Just an interesting note. :slight_smile:

Lmao, at least you’re helping countless souls who made the same mistake. I’ve done the same too many times.

My guess is that’s a side effect of the taser being a single shot. Thanks for the feedback!

3 Likes

I love this

looks good

Getting this error
Resource DelObjGun does not specify an fx_version in fxmanifest.lua

Make sure this is in your fxmanifest.lua:

fx_version "bodacious"
game "gta5"

My server does, but I can confirm it is not working.

Some people still have issues when it comes to fx_version “bodacious”

Try:

fx_version "adamant"
game "gta5"
2 Likes

Nice work dude :smiley:

1 Like

Sometimes the gun stop working and i cand delete anything…

does this work with onesync?

no matter the setting, it seems that the gun will delete anything its aimed at, additionally trying to set it for use as admins only doesn’t seem to work.

Did you run the convars through your server.cfg?

Seems my little issue on the first post didn’t help that poster. Dangit! :wink:

While I’m here, I did notice a bit of a problem that isn’t much of a problem… When I was demonstrating for my mod (and having fun trying to delete him with it :D), I found the reliability of the weapon is… less… As in, I have to trigger a vehicle or entity multiple times before it will delete (sometimes, not all the time).
Do you know why? Is it networking? Am I able to fix it so it works with a 100% success rate with other people online and nearby?
(Do note: it does work, it just takes multple triggers before working, I’ve found, whereas alone it’s first time, every time.)

Thankies. :slight_smile:

Turns out you can delete players apparantly