{"id":19840222,"url":"https://github.com/nocapscripts/ks-drugspack","last_synced_at":"2025-02-28T19:18:19.628Z","repository":{"id":160523890,"uuid":"635397403","full_name":"nocapscripts/ks-drugspack","owner":"nocapscripts","description":"Drugspack for QBCore servers based on ox_inventory","archived":false,"fork":false,"pushed_at":"2023-05-02T16:09:25.000Z","size":671,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-11T11:29:30.660Z","etag":null,"topics":["fivem","qbcore","qbcore-script"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nocapscripts.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-05-02T15:54:24.000Z","updated_at":"2024-12-04T18:26:47.000Z","dependencies_parsed_at":"2023-08-17T22:42:53.546Z","dependency_job_id":null,"html_url":"https://github.com/nocapscripts/ks-drugspack","commit_stats":null,"previous_names":["redeyescripts/ks-drugspack","user5435863212362/ks-drugspack","auserthatnooneknows/ks-drugspack","reduxscripts/ks-drugspack","nocapscripts/ks-drugspack"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nocapscripts%2Fks-drugspack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nocapscripts%2Fks-drugspack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nocapscripts%2Fks-drugspack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nocapscripts%2Fks-drugspack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nocapscripts","download_url":"https://codeload.github.com/nocapscripts/ks-drugspack/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241209760,"owners_count":19927737,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fivem","qbcore","qbcore-script"],"created_at":"2024-11-12T12:25:59.653Z","updated_at":"2025-02-28T19:18:19.597Z","avatar_url":"https://github.com/nocapscripts.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ks-drugspack\n\nAn drug system pack for ox_inventory servers based of ps-drugs etc.\n\n\n# Original ones\n\n* [ps-drugprocessing](https://github.com/Project-Sloth/ps-drugprocessing)\n\n* [cad-drugsales](https://github.com/cadburry6969/cad-drugsales)\n\n\n# Depedencies\n\n\n* Some depedencies are in this pack\n\n\n# Locales\n\n* Current locale is in Estonian if you want to translate them into ENG then use scripts above or use your mind :)\n\n\n# Add items \n\n```\n    [\"wet_weed\"] \t\t \t \t \t = {[\"name\"] = \"wet_weed\",           \t\t\t[\"label\"] = \"Moist Weed\",\t \t\t\t[\"weight\"] = 3000, \t\t[\"type\"] = \"item\", \t\t[\"image\"] = \"wet_weed.png\", \t\t\t[\"unique\"] = false, \t[\"useable\"] = false, \t[\"shouldClose\"] = false,   [\"combinable\"] = nil,   [\"expire\"] = 90,  [\"description\"] = \"Wet weed that needs to be treated!\"},\n    [\"coke\"] \t\t \t \t \t     = {[\"name\"] = \"coke\",           \t\t\t\t[\"label\"] = \"Cocaine\", \t\t\t\t\t[\"weight\"] = 1000,\t\t[\"type\"] = \"item\", \t\t[\"image\"] = \"coke.png\", \t\t\t\t[\"unique\"] = false, \t[\"useable\"] = false, \t[\"shouldClose\"] = false,   [\"combinable\"] = nil,   [\"expire\"] = 90,  [\"description\"] = \"Processed cocaine\"},\n    [\"coca_leaf\"] \t\t \t \t \t = {[\"name\"] = \"coca_leaf\",           \t\t\t[\"label\"] = \"Cocaine leaves\",\t \t\t[\"weight\"] = 1500,\t\t[\"type\"] = \"item\", \t\t[\"image\"] = \"coca_leaf.png\", \t\t\t[\"unique\"] = false, \t[\"useable\"] = false, \t[\"shouldClose\"] = false,   [\"combinable\"] = nil,   [\"expire\"] = 90,  [\"description\"] = \"Cocaine leaves that must be processed !\"},\n    [\"cannabis\"] \t\t\t \t\t = {[\"name\"] = \"cannabis\", \t\t\t\t\t\t[\"label\"] = \"Cannabis\", \t\t\t\t[\"weight\"] = 2500, \t\t[\"type\"] = \"item\", \t\t[\"image\"] = \"cannabis.png\", \t\t\t[\"unique\"] = false, \t[\"useable\"] = true, \t[\"shouldClose\"] = true,\t   [\"combinable\"] = nil,   [\"expire\"] = 90,  [\"description\"] = \"Uncured cannabis\"},\n    [\"marijuana\"] \t\t\t \t\t = {[\"name\"] = \"marijuana\", \t\t\t\t\t[\"label\"] = \"Marijuana\", \t\t\t\t[\"weight\"] = 500,\t\t[\"type\"] = \"item\", \t\t[\"image\"] = \"marijuana.png\", \t\t\t[\"unique\"] = false, \t[\"useable\"] = false, \t[\"shouldClose\"] = true,\t   [\"combinable\"] = nil,   [\"expire\"] = 90,  [\"description\"] = \"Some fine smelling buds.\"},\n    [\"chemicals\"] \t\t \t \t \t = {[\"name\"] = \"chemicals\",           \t\t\t[\"label\"] = \"Chemicals\",\t \t\t\t[\"weight\"] = 1500, \t\t[\"type\"] = \"item\", \t\t[\"image\"] = \"chemicals.png\", \t\t\t[\"unique\"] = false, \t[\"useable\"] = false, \t[\"shouldClose\"] = false,   [\"combinable\"] = nil,   [\"expire\"] = 90,  [\"description\"] = \"Chemicals, handle with care...\"},\n    [\"poppyresin\"] \t\t \t \t \t = {[\"name\"] = \"poppyresin\",           \t\t\t[\"label\"] = \"Poppy resin\",\t \t\t\t[\"weight\"] = 2000, \t\t[\"type\"] = \"item\", \t\t[\"image\"] = \"poppyresin.png\", \t\t\t[\"unique\"] = false, \t[\"useable\"] = false, \t[\"shouldClose\"] = false,   [\"combinable\"] = nil,   [\"expire\"] = 90,  [\"description\"] = \"It sticks to your fingers when you handle it.\"},\n    [\"heroin\"] \t\t \t \t \t     = {[\"name\"] = \"heroin\",           \t\t\t\t[\"label\"] = \"Heroin\",\t \t\t\t\t[\"weight\"] = 500, \t\t[\"type\"] = \"item\", \t\t[\"image\"] = \"heroin.png\", \t\t\t\t[\"unique\"] = false, \t[\"useable\"] = false, \t[\"shouldClose\"] = false,   [\"combinable\"] = nil,   [\"expire\"] = 90,  [\"description\"] = \"Really addictive depressant...\"},\n    [\"lsa\"] \t\t \t \t \t     = {[\"name\"] = \"lsa\",           \t\t\t\t[\"label\"] = \"LSA\",\t \t\t\t\t\t[\"weight\"] = 500, \t\t[\"type\"] = \"item\", \t\t[\"image\"] = \"lsa.png\", \t\t\t\t\t[\"unique\"] = false, \t[\"useable\"] = false, \t[\"shouldClose\"] = false,   [\"combinable\"] = nil,   [\"expire\"] = 90,  [\"description\"] = \"Almost ready to party...\"},\n    [\"lsd\"] \t\t \t \t \t     = {[\"name\"] = \"lsd\",           \t\t\t\t[\"label\"] = \"LSD\",\t \t\t\t\t\t[\"weight\"] = 500, \t\t[\"type\"] = \"item\", \t\t[\"image\"] = \"lsd.png\", \t\t\t\t\t[\"unique\"] = false, \t[\"useable\"] = false, \t[\"shouldClose\"] = false,   [\"combinable\"] = nil,   [\"expire\"] = 90,  [\"description\"] = \"Lets get this party started!\"},\n    [\"meth\"] \t\t \t \t \t     = {[\"name\"] = \"meth\",           \t\t\t\t[\"label\"] = \"Meth\",\t \t\t\t\t\t[\"weight\"] = 500, \t\t[\"type\"] = \"item\", \t\t[\"image\"] = \"meth.png\", \t\t\t\t[\"unique\"] = false, \t[\"useable\"] = true, \t[\"shouldClose\"] = false,   [\"combinable\"] = nil,   [\"expire\"] = 90,  [\"description\"] = \"Really addictive stimulant...\"},\n    [\"hydrochloric_acid\"] \t\t\t = {[\"name\"] = \"hydrochloric_acid\", \t\t\t[\"label\"] = \"Hydrochloric Acid\",\t\t[\"weight\"] = 1500, \t\t[\"type\"] = \"item\", \t\t[\"image\"] = \"hydrochloric_acid.png\", \t[\"unique\"] = false, \t[\"useable\"] = true, \t[\"shouldClose\"] = true,\t   [\"combinable\"] = nil,   [\"expire\"] = 90,  [\"description\"] = \"Chemicals, handle with care!\"},\n    [\"sodium_hydroxide\"] \t\t\t = {[\"name\"] = \"sodium_hydroxide\", \t\t\t\t[\"label\"] = \"Sodium Hydroxide\", \t\t[\"weight\"] = 1500, \t\t[\"type\"] = \"item\", \t\t[\"image\"] = \"sodium_hydroxide.png\", \t[\"unique\"] = false, \t[\"useable\"] = true, \t[\"shouldClose\"] = true,\t   [\"combinable\"] = nil,   [\"expire\"] = 90,  [\"description\"] = \"Chemicals, handle with care!\"},\n    [\"sulfuric_acid\"] \t\t \t \t = {[\"name\"] = \"sulfuric_acid\",           \t\t[\"label\"] = \"Sulfuric Acid\",\t \t\t[\"weight\"] = 1500, \t\t[\"type\"] = \"item\", \t\t[\"image\"] = \"sulfuric_acid.png\", \t\t[\"unique\"] = false, \t[\"useable\"] = false, \t[\"shouldClose\"] = false,   [\"combinable\"] = nil,   [\"expire\"] = 90,  [\"description\"] = \"Chemicals, handle with care!\"},\n    [\"thionyl_chloride\"] \t\t \t = {[\"name\"] = \"thionyl_chloride\",           \t[\"label\"] = \"Thionyl Chloride\",\t \t\t[\"weight\"] = 1500, \t\t[\"type\"] = \"item\", \t\t[\"image\"] = \"thionyl_chloride.png\", \t[\"unique\"] = false, \t[\"useable\"] = false, \t[\"shouldClose\"] = false,   [\"combinable\"] = nil,   [\"expire\"] = 90,  [\"description\"] = \"Chemicals, handle with care!\"},\n    [\"liquidmix\"] \t\t \t \t     = {[\"name\"] = \"liquidmix\",           \t\t    [\"label\"] = \"Liquid Chem Mix\",\t \t\t[\"weight\"] = 1500, \t\t[\"type\"] = \"item\", \t\t[\"image\"] = \"liquidmix.png\", \t\t    [\"unique\"] = false, \t[\"useable\"] = false, \t[\"shouldClose\"] = false,   [\"combinable\"] = nil,   [\"expire\"] = 90,  [\"description\"] = \"Chemicals, handle with care!\"},\n    [\"bakingsoda\"] \t\t \t \t     = {[\"name\"] = \"bakingsoda\",           \t\t    [\"label\"] = \"Baking Soda\",\t \t\t    [\"weight\"] = 1500, \t\t[\"type\"] = \"item\", \t\t[\"image\"] = \"bakingsoda.png\", \t\t    [\"unique\"] = false, \t[\"useable\"] = false, \t[\"shouldClose\"] = false,   [\"combinable\"] = nil,   [\"expire\"] = 90,  [\"description\"] = \"Household Baking Soda!\"},\n    [\"chemicalvapor\"] \t\t \t     = {[\"name\"] = \"chemicalvapor\",           \t    [\"label\"] = \"Chemical Vapors\",\t \t\t[\"weight\"] = 1500, \t\t[\"type\"] = \"item\", \t\t[\"image\"] = \"chemicalvapor.png\", \t    [\"unique\"] = false, \t[\"useable\"] = false, \t[\"shouldClose\"] = false,   [\"combinable\"] = nil,   [\"expire\"] = 90,  [\"description\"] = \"High Pressure Chemical Vapors, Explosive!\"},\n    [\"trimming_scissors\"] \t\t \t = {[\"name\"] = \"trimming_scissors\",           \t[\"label\"] = \"Trimming Scissors\",\t \t[\"weight\"] = 1500, \t\t[\"type\"] = \"item\", \t\t[\"image\"] = \"trimming_scissors.png\", \t[\"unique\"] = false, \t[\"useable\"] = false, \t[\"shouldClose\"] = false,   [\"combinable\"] = nil,   [\"expire\"] = 90,  [\"description\"] = \"Very Sharp Trimming Scissors\"},\n    ['methtray'] \t\t\t\t\t = {['name'] = 'methtray', \t\t\t\t\t\t['label'] = 'Meth Tray', \t\t\t\t['weight'] = 200, \t\t['type'] = 'item', \t\t['image'] = 'meth_tray.png', \t\t\t['unique'] = false, \t['useable'] = false, \t['shouldClose'] = false,   ['combinable'] = nil,   ['description'] = 'make some meth'},\n    ['methkey'] \t\t\t\t\t = {['name'] = 'methkey', \t\t\t\t\t\t['label'] = 'Key A', \t\t\t\t    ['weight'] = 200, \t\t['type'] = 'item', \t\t['image'] = 'keya.png', \t\t\t    ['unique'] = false, \t['useable'] = false, \t['shouldClose'] = false,   ['combinable'] = nil,   ['description'] = 'Random Key, with \"Walter\" Engraved on the Back...'},\n    ['cocainekey'] \t\t\t\t\t = {['name'] = 'cocainekey', \t\t\t\t\t['label'] = 'Key B', \t\t\t\t    ['weight'] = 200, \t\t['type'] = 'item', \t\t['image'] = 'keyb.png', \t\t\t    ['unique'] = false, \t['useable'] = false, \t['shouldClose'] = false,   ['combinable'] = nil,   ['description'] = 'Random Key, with a \"Razorblade\" Engraved on the Back...'},\n    ['weedkey'] \t\t\t\t\t = {['name'] = 'weedkey', \t\t\t\t\t\t['label'] = 'Key C', \t\t\t\t    ['weight'] = 200, \t\t['type'] = 'item', \t\t['image'] = 'keyc.png', \t\t\t    ['unique'] = false, \t['useable'] = false, \t['shouldClose'] = false,   ['combinable'] = nil,   ['description'] = 'Random Key, with a \"Seed\" Engraved on the Back...'},\n    ['finescale'] \t\t\t\t\t = {['name'] = 'finescale', \t\t\t\t\t['label'] = 'Fine Scale', \t\t\t    ['weight'] = 200, \t\t['type'] = 'item', \t\t['image'] = 'finescale.png', \t\t\t['unique'] = false, \t['useable'] = false, \t['shouldClose'] = false,   ['combinable'] = nil,   ['description'] = 'Scale Used for Fine Powders and Materials.'},\n    ['coke_small_brick'] \t\t \t = {['name'] = 'coke_small_brick', \t\t\t\t['label'] = 'Coke Package', \t\t\t['weight'] = 350, \t\t['type'] = 'item', \t\t['image'] = 'coke_small_brick.png', \t['unique'] = false, \t['useable'] = false, \t['shouldClose'] = true,\t   ['combinable'] = nil,   ['description'] = 'Small package of cocaine, mostly used for deals and takes a lot of space'},\n```\n\n# Add function to your qbcore functions or rename the function\n```\nfunction QBCore.Functions.DrawText3D(x,y,z, text)\n    local onScreen,_x,_y=World3dToScreen2d(x,y,z)\n    local px,py,pz=table.unpack(GetGameplayCamCoords())\n    SetTextScale(0.35, 0.35)\n    SetTextFont(4)\n    SetTextProportional(1)\n    SetTextColour(255, 255, 255, 215)\n    SetTextEntry(\"STRING\")\n    SetTextCentre(1)\n    AddTextComponentString(text)\n    DrawText(_x,_y)\n    local factor = (string.len(text)) / 370\n    DrawRect(_x,_y+0.0125, 0.015+ factor, 0.03, 41, 11, 41, 68)\nend\n```\n\n# !NB\n\nSome functions are made by me it is located in ks-drugs client files\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnocapscripts%2Fks-drugspack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnocapscripts%2Fks-drugspack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnocapscripts%2Fks-drugspack/lists"}