Hey, thank you for your feedback. I agree that videos about the functionality and setup would definitely help inexperienced users. Regarding your third and fourth point: We identified and resolved some issues in the last few days that could be related to the errors you described - please check out the latest version and let us know if you still experience these issues. Also note that there are no bullet cases (at least for now), but only magazines.
Update v1.0.4
- It is now possible to search for full names in the database app (e.g. âJohn Doeâ) instead of only first or last names (#4)
- You can now define which jobs and grades are required for specific actions (e.g. picking up or accessing laptops) (#7)
hydrogen_peroxideis now needed not only to destroy bloodstains but also to destroy fingerprints (#6)- Blood and fingerprints can now be removed from weapons: Therefore, the player has to use
hydrogen_peroxidewhile having a weapon equipped. - Added a new api method for removing an evidence from an item:
evidence:removeFromItem(inventory, slot) - Fixed minor bugs: Fingerprints are no longer left on weapons or the
fingerprint_scanneritem when wearing gloves
After a short time running the script, the laptop screen becomes black and canât see nothing, just hear the sounds, when i restart the script it runs normaly, but becomes black again, i donât see any error on the console.
Thanks for reporting this, we will look into it. Could you let us know which framework (esx, qbox, nd, or ox) you are using? And there are no errors on the client and server?
Thank you.
We are using QBOX, but i didnât used your oxtarget fork, donât know if this is crucial for the script.
Unfortunately, we arenât able to reproduce your issue. Are there any specific actions you do before the laptop screen becomes black and are you using the newest version of the script (i.e. v1.0.4)? Using the ox_target fork is completely optional and not required.
Hey i have no Errors or something else but when i go to acces the laptop it dont log in
I use the latest version and esx i got all depandacys
You have to click on the screen saver in order to get logged in.
I click but nothing happens
I have the fix. If you use direct input instead of raw input, the click doesnât work.
Thanks for catching this - we should probably add this to the documentation.
I have another bug: when I use the fingerprint scanner, I canât get a fingerprint from the scanner. also no error in live and server console
Could you please describe the issue in more detail and the steps you did to produce it? The fingerprint scanner works the following way: After using it, another player can target it with the third eye and put their finger on it. Afterwards, you are supposed to go the the laptop and open the fingerprint app where you can select the fingerprint scanner and create a database entry for the scanned fingerprint. Hope this helps ![]()
is there any way to put a debug mode on? cause i tried on my clean base and it works perfectly, but on the city it doesnât
Thereâs currently no debug mode available, but in this case, it probably wouldnât help much anyway as the error doesnât seem to be in the evidence script itself.
Hereâs what you can try instead:
-
Stop all scripts on your server instance where the laptop isnât working except for the core scripts and the evidence script.
-
In this minimal setup, check if the evidence script works correctly.
-
If it does, start enabling your other scripts one by one, or in small batches, testing the evidence script after each step.
This process should help you identify which script is interfering with the evidence script. Once you find it, let us know which one it is, and weâll take a closer look on our end.
Depending on the number of scripts you have, this process might take a bit of time, but it would really help us identify the problem. Itâs possible that the interfering script is a popular one, which means fixing it could benefit others too. If you already have an intuition about which script might be causing the issue, you could start there. Otherwise, if going through all of them is too much work, feel free to share a list of the scripts youâre running, and weâll see what we can do to find and fix the issue.
Ok, we are going to do that, iâm gonna share with you the list of assets we have here in the server, its a lot cause we have a city running, but we are going to test one by one. Anyway, thanks for the help youâre providing.
Wow, thatâs a lot of scripts. We really appreciate your help ![]()
OK, think i see the problem, uh first of all iâm not a coder and unfortunatelly we donât have one, so i had to ask CHATGPT for some help, and i think i found the problem cause i kinda solved my issue with the screen turning black.
Analysing the script, the chatgpt said that in our main server we had some kind of entity dump or dui cleaner, something like that and then said that the script didnât refresh the dui after sometime to ensure that the dui stills showing.
Then as a solution for this, it recommended that i add some lines to your texture.lua and dui.lua in the client/dui folder
1° This is how the dui.lua is now.
local eventHandler <const> = require "common.events.handler"
-- This event handels dui <-> server communication by redirecting data and returning the response
eventHandler.onNui("triggerServerCallback", function(event)
event.response = lib.callback.await(event.data.name, false, event.data.arguments)
end)
-- For creating a dui, we use ox_lib's built-in dui class (https://oxdocs.dev/ox_lib/Modules/Dui/Lua/Client).
-- For more information about duis read:
-- https://docs.fivem.net/docs/scripting-manual/nui-development/dui/
-- https://discord.com/channels/192358910387159041/1164139647673303160/1380379817513586709 and the ongoing messages (we use method No. 2 to render the dui)
-- https://github.com/Mycroft-Studios/FiveM-Dui-Boilerplate/blob/main/client/classes/dui.lua
-- Creates and maintains active DUI globally
if not _G.__evidenceDui__ then
_G.__evidenceDui__ = lib.dui:new({
url = string.format("nui://%s/html/dui/laptop/dist/index.html", cache.resource),
width = 1920,
height = 1080,
debug = false
})
end
return _G.__evidenceDui__
2° And then this is how the texture.lua it is now.
local eventHandler <const> = require "common.events.handler"
local texture = {}
function texture.replace(orgiTxtName, newDictName, newTxtName)
lib.requestModel("p_laptop_02_s")
AddReplaceTexture("p_laptop_02_s", orgiTxtName, newDictName, newTxtName)
SetModelAsNoLongerNeeded("p_laptop_02_s")
-- đ Reapply texture every 60 seconds to avoid black screen bug
CreateThread(function()
while true do
Wait(60000)
AddReplaceTexture("p_laptop_02_s", orgiTxtName, newDictName, newTxtName)
end
end)
eventHandler.onLocal("onResourceStop", function(event)
if event.arguments[1] == cache.resource then
RemoveReplaceTexture("p_laptop_02_s", orgiTxtName)
end
end)
end
-- Replace texture of p_laptop_02_s model with prop_laptop_02_ng
local txd <const> = CreateRuntimeTxd("evidences")
CreateRuntimeTextureFromImage(txd, "laptop", "client/dui/laptops/texture/prop_laptop_02_ng.png")
texture.replace("prop_laptop_02b", "evidences", "laptop")
return texture
After all that the problem was solved, sometimes i still see the prop scree black, but when i open it, it becomes active again.
Sorry for using chatgpt, but it was what i have in hand by now.
Thank you so much for investigating. The proper fix would be to remove this dui cleaner from your server or adapt it to not delete the laptop dui, do you know the name of the script containing this entity dump logic? We will have a look what we can do, but reapplying the texture every 60 seconds doesnât seem to be a very performant solution. We will try to figure something out.
Uh, i have no idea, first i though it would be our ox_lib, cause we have a redesigned one, maybe could be onesync but iâm not professional in the area to say that, iâll have a conversation with the owner and ask if he knows something. I would love to say what you guys need to do to fix it, but could be more complicated than i think, donât know if the script could verify if the dui is loaded and if not reload it, but as you saird it is not a good performance way.





