UPDATE VERSION - 1.6

  • Going into water will now clean off the GSR from the player (Thanks for the idea @benzon83 !)
  • Ability to toggle whether or not water will clean off the Gunshot Residue (Client side at the top, look for comments)
  • Script will pNotify you when it cleaned off the GSR
  • Cleaned up the resource file
  • I think that is all…

Download link: CLICK HERE!

integration to the police menu would be more then awesome instead of using an command :slight_smile:

hmmm, If I can get enough people to want that I will see about adding that add-on. Not much will need to change in the script itself… I would just need to send you what you need to add to the police script.

i could also do it and share it if you like

Yea, DM me what you got if you want, Ill give you credit. If not I can write that up really quick.

Yeah would definitely like to get a code snippet/tutorial on how to get this added to the F6 menu under Citizen Interactions

1 Like

When I type in chat / gsr I get these errors

[ 694734] Error running system event handling function for resource Radiant_gsrtest: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: Execution of native 00000000ff7f66ab in script host failed.
[ 694734] stack traceback:
[ 694734] [C]: in upvalue ‘_in’
[ 694734] citizen:/scripting/lua/natives_server.lua:112: in function ‘GetNumPlayerIdentifiers’
[ 694734] citizen:/scripting/lua/scheduler.lua:248: in function ‘GetPlayerIdentifiers’
[ 694734] server.lua:29: in upvalue ‘handler’
[ 694734] citizen:/scripting/lua/scheduler.lua:175: in function citizen:/scripting/lua/scheduler.lua:174
[ 694734] stack traceback:
[ 694734] [C]: in function ‘error’
[ 694734] citizen:/scripting/lua/scheduler.lua:41: in field ‘CreateThreadNow’
[ 694734] citizen:/scripting/lua/scheduler.lua:174: in function citizen:/scripting/lua/scheduler.lua:138
[ 730625] InvokeNative: execution failed: Argument at index 0 was null.

@CLOS
Couple Questions:

  1. Did you restart the server when you threw it in?

  2. When you typed the command, did you put a server ID after it? (/gsr #) If you did, was that player online at the time?

Seems to me like you either didn’t put a server ID number, or the one you put there was not online at the time. Only two things that could really be… or you didn’t restart.

This is why you got this error at the end:

[ 730625] InvokeNative: execution failed: Argument at index 0 was null.

Alright no worries! If that guy doesn’t DM me anything by tonight I will add something to the README of the next version tonight, as well as throw it in the Original Post and here in the replies. Just don’t want to do that if he is putting time in to do it haha. Thanks!

Yes, that’s exactly what happened.
For coicidence do not remember this detail of putting ID
more could have as when typing / gsr and forget the id it inform not chat the format of how player should enter correct format / gsr id
When I typed correctly worked perfectly more always appears this message in the chat

I took a test
I gave shot of arming, police officer gave it as positive
I’ll skip the water and clear evidence.
he checked again and I received this error on the console

https://pastebin.com/5tkXcB1j

Yes, I can do that for the update later tonight when I add the instructions to add it to the Police Menu! Great idea. Thanks!

Let me check on that error one second and I will see whats up.

I cannot re-create your error… I think you might have edited the code maybe. There is nothing that could cause that to happen.

I did not change anything … I put it down

an Active database checking a timer? hmmm I can smell a performance issue :smiley:

You might smell one, and you might not haha. Depends on whether or not you change the code to check or not to check on a timer lol. The power is in your hands :slight_smile:

Hey! Quick update! As Requested!!

Check the original post. I added a drop-down with instructions on how to add this to your police menu using esx_policejob.

Should be fairly simple and self explanatory. Enjoy!

This will now allow you to run a GSR Test on the player closest to you without needing to get their ID or even type a command. (keep in mind that you do still need to keep the ‘Radiant_gsrtest’ script running!)

Well I dont use ESX as I have my own custom Framework.

1 Like

Ahh okay, very cool! I mean that is the best way to go. I plan on going into that once I have some more free time here soon.

Is it possible to make a non-esx version?