DH | Drugalyser
Framework Compatibility
DH Drugalyser only works with TMC Framework. You MUST own this framework in order to use this script
Installation
Download DHDrugalyser from your keymaster
Drag the file into your resources folder and "ensure DHDrugalyser " in your server.cfg
Item
Add this into your core/sharedGta.lua
["drugalyser"] = {
["label"] = "Drugalyser",
["weight"] = 500,
["type"] = "item",
["image"] = "drugalyser.webp",
["unique"] = false,
["stackable"] = false,
["useable"] = true,
["shouldClose"] = true,
["description"] = "Check the drug level in someones saliver"
},Configuration
"Hanssen:server:drugalyseeffect"
You will have to trigger this event where your joint script is in order for them to test positive for cannabis when smoking. If you struggle we can provide support.
Config.Type = "radial"
If you have Config.Type set to "radial" you must integrate our script into your radialmenu. Add this below ["police:search"] in your radialmenu/config.lua. Make sure to change the TMC.Functions.HasItem("drugalyser") to the item you have as required item
['police:drugalyse'] = {
title = "Drugalyse",
icon = "wine-bottle",
iconCategory = 'solid',
functionName = "Hanssen:client:druga:openMenu",
enableMenu = function()
return not isDead and TMC.Functions.HasItem('drugalyser')
end,
},
You also need to add "police:drugalyse" to your subMenus for "Police Actions" like shown below
{
id = 'police',
displayName = 'Police Actions',
icon = 'user-police',
iconCategory = 'duotone',
enableMenu = function()
return not isDead and requiredPoliceRanks.Officer[curJob] and curGrade <= requiredPoliceRanks.Officer[curJob]
end,
subMenus = {'police:evidenceSearch', "police:frisk", "police:search", "police:drugalyse", "medic:emergencybutton", "police:gsr", "police:openmdt", "police:impound", "police:key", "police:checkstatus", "police:BACTest", "police:cameramenu", "police:checkvin", "police:managecitizen", "police:openRadar", "police:dnaswab", "vehicle:getinheli", "vehicle:putinheli","police:destroyTable"}
},
Last updated