Bablo ResourcesDocs

Server Exports

Register Drug Consumption

Reports that a player successfully used a drug, so it can leave a trace. Call it after your own resource has removed the item. The calling resource must be listed in DrugTraceConfig.AllowedResources and the item in DrugTraceConfig.Items.

LUA
-- playerId: number - player server id
-- itemName: string - the consumed item name
-- return: bool, string? - false and a reason if the call was not accepted
 
exports["bablo-evidence"]:RegisterDrugConsumption(playerId, itemName)