[FREE] Evidence script

This looks solid! Been using it and it’s been great so far, here are a few things id love to see added at some point

  • Bullet casings
  • Bullet/Weapon impacts
  • Maybe some form of scene recreation that shows lines of the trajectory of bullets on a scene
  • Footprints
3 Likes

Thank you for your feedback! We added the majority of your suggestions to our list of planned features on GitHub. It may take us some time to implement them, as our list has grown significantly over the past few weeks. Regarding the footprints: In what scenarios can you imagine footprints being left behind? Regarding the trajectory lines: We’d rather not add this feature for now, since it doesn’t fit our concept. However, we could imagine showing the angle of impact based on the bullet impacts.

Can you ad support for multiple inventories systems? Like tgiann-inventory?

As @Luccboy already mentioned, we’re absolutely open to extending the script so that it can support other inventory systems.

However, regarding tgiann-inventory, we’re not planning to spend €60 just to implement support for it in a script that we provide completely free of charge.

I can test it for you

Newest update is dope keep em coming!

3 Likes

Hi! I’m having a couple of issues with the script and I was hoping you could help.
I’m getting an error that the callback evidences:laptops:place does not exist, and also a server error saying there is no export RemoveInventory in ox_inventory.
Everything else seems to start fine. Any idea what might be missing or misconfigured?
Thanks in advance!


image

The first error occurs when the script starts faster on the client than on the server. We will fix the error in the next update. Until then, you can simply restart the script until the error no longer occurs. However, the error only occures when the script is started/restarted manually and not when joining the server.

Regarding the second error: Which version of ox_inventory is installed on your server? We recommend using the latest version of community ox. You can find it here: Releases · CommunityOx/ox_inventory · GitHub

Even after restarting the script, the first error still occurs when using the laptop item.
So the issue is not only related to manual start/restart, but also happens during normal usage.
This makes the script unusable in its current state.
Please let me know if this is a known issue and if a fix is planned.

The first error I referred to does exist, but it is not the error you had. We missed that, sorry.

The two errors you had are actually related to each other. Because the export RemoveInventory does not exist in your ox_inventory version (it was added on September 18, 2023 to ox_inventory), the script does not start correctly on the server and the callback is not registered. This means you would need to determine why the export does not exist on your server (probably update ox_inventory). Otherwise, you could simply remove the code in lines 9 to 35 at server/items.lua.

By the way, the script is currently used by 140+ servers and runs fine there :slight_smile:

Thanks for the clarification.
That makes sense now. I’ll check and update ox_inventory to a version that includes the RemoveInventory export and test again.

If for any reason that’s not possible, is removing lines 9–35 safe in terms of functionality, or will it disable any important features?

1 Like

We’re always happy when we can help! Sorry again that we didn’t take a proper look at it in the beginning.

Those few lines of code do the following:
With ox_inventory version 2.44.4 and higher, you no longer need to manually create the evidence_box item as a container item — we handle this via a ox_inventory export.
In all older versions, the item must be registered manually as a container item. The code then checks whether this has been done and sends the user a notice if they forgot this setup step.

That means: if you remove those lines from the code, only this validation will be skipped. There are no other losses in functionality.

Thank you very much, everything is working fine now.
I really appreciate your help.

I just have a few questions regarding the system.
Would it be possible to create a detailed video tutorial showing how an evidence examination works step by step?
I think it would be very helpful to better understand all the features and to avoid confusion in the future.

I have a few questions regarding some items and their workflow.
For example:
hydrogen_peroxide, fingerprint_brush, and evidence_box.

Could you please clarify how evidences created with these items are supposed to be examined using the laptop?
A step-by-step explanation or video showing the full process (from collecting evidence to examining it on the laptop) would be extremely helpful.

1 Like

In our wiki, we explain step-by-step in which scenarios evidence is created, how it can be destroyed by criminals, and how it can be secured and analyzed by police officers. Moreover, you can find a short explanation about the evidence boxes.

If you still have questions, we are always available to help. We may also make short explanatory video clips in the future, but that will take some time, and we currently prefer to invest our time in new updates.

Thank you for the clarification and the wiki, that helps a lot.

I just have one more question regarding phone integration.
Is it possible (or planned) to support synchronization with YPhone FiveM, similar to how roadphone / npwd / lb-phone are supported?

We are currently using YPhone on our server, so I wanted to ask if compatibility is available or if it would require custom implementation.

We’re glad we could help. If you have any further questions, please post them here in the forum or as a discussion on our GitHub.

Regarding the question about the phone: currently, this is not supported and would require a separate implementation. However, at your request, we will support YPhone in the next release.

We have added support for yphone in the latest release (v1.1.2)

I need help. When i try to place the Laptop this error comes:

SCRIPT ERROR: @ox_lib/imports/callback/client.lua:67: callback ‘evidences:placeLaptop’ does not exist^7
cb @ox_lib/imports/callback/client.lua:67
handler @ox_lib/imports/callback/client.lua:23

Does an error occur on the server when you start the script? As a result, the callback may not be registered.

When I start the resource this happens:

SCRIPT ERROR: @ox_lib/imports/callback/client.lua:84: callback ‘evidences:getLaptops’ does not exist