Hey there this is my third script for the community!
FiveM ESX Script allows you to perform drug tests on players and draw blood in your game. With this script, you can enhance the testing capabilities of your police force and provide a more realistic gaming experience. The script provides an easy-to-use interface that allows you to quickly and efficiently draw blood samples and test them for drugs. You can also perform various blood tests to check the results. Moreover, the script allows you to make and adjust various settings to make the test as realistic as possible. These settings can be easily adjusted to perform different tests and check the players. All in all, this FiveM ESX script is a great way to improve the police skills in your game and provide a more realistic gaming experience.
The following options are available:
- Coke
- Meth
- Speed
- Opium
- Weed
Any other drug can also be set to test positive.
Other features:
- Urine test on players, this must be accepted
- Blood collection with the item blood collection set for example MD
Get in on Tebex
Code is accessible | No
Subscription-based | No
Lines | ~1700
Requirements| ESX 1.1+ or Legacy
Support | Yes
1 Like
so wait, the player has no choice to choose positive or negative its just based on the items consumed?
Based on the time you set in the config. When this time expires, the player can no longer test positive for that drug. Yes, depending on what you have consumed, the test will work. With the urine test, the player can decide whether he agrees to this or not, but a blood sample can be taken by a doctor under duress.
1 Like
thanks for the reply, will deffo be buying it thanks
1 Like
I’m glad to hear that. I have added a discount.
1 Like
I would like to include the event TriggerClientEvent(‘tbs_drugtest:takedrug’, source, ‘weed’) in the advanced_drug_creator, but unfortunately I can’t because it is protected. So I tried to do it via
ESX.RegisterUsableItem(‘v_weed’, function(source)
TriggerClientEvent(‘tbs_drugtest:takedrug’, source, ‘weed’)
end)
to try.
Which also doesn’t work.
Furthermore, it is the case that other triggers work very well, only this one does not.
I also use the correct esx version

It would be enough for me to have the possibility to make the drug test work with the trigger under a RegisterUsableItem.
Vielen Dank für den guten Support. Es funktioniert alles!
1 Like
I would love to see this converted over to QB
1 Like
Ich habe das Script gekauft und auf meinem Keymaster Account.
Jetzt ist mein Problem, das ich die ESX Legacy 1.9.4 habe und die Trigger nicht mehr angenommen werden.
[ script:es_extended] [ERROR] Resource tbs_drugtest Used the getSharedObject Event, this event no longer exists! Visit esx:getSharedObject Deprecation | ESX Documentation for how to fix!
[ script:tbs_drugtest] Error loading script server/server.lua in resource tbs_drugtest: ?
attempt to index a nil value (field ‘ESX’)
[ script:tbs_drugtest] stack traceback:
[ script:tbs_drugtest] ?: in main chunk
[ c-scripting-core] Failed to load script server/server.lua.
Da leider die server.lua und client.lua verschlüsselt sind, kann ich das leider nicht selber fixen.
Kann man da ein Update bekommen, weil sonst bringt das Script gar nichts.