Agency Docs
QBESXStandalone

Agency-Drugs التصديرات وواجهة البرمجة

نظام المخدرات المتكامل لـ FiveM في سكريبت واحد.

v1.0.0مدفوع5 صفحاتاعتبارًا من 01.11.2026

01تصديرات الخادم

التصديرالوصف
GetDrugPrice(src, item, quality)The street price of one unit for this player right now, with market, police and gang turf applied.
SellDrug(src, item, amount, pricePercent)Sells drugs from the player's inventory at the given % of the base price and pays them. Returns ok, total.
UseDrug(src, item)Makes the player take one unit of a drug they carry, with animation and effect.
GetItems()Every drug and ingredient with label, base price, use and effect.
GetRoutes()All routes with label, colour and whether they are switched on.
GetNarcos()Where the narcos buyer stands right now and until when, or nil.
GetAuction()The running auction: item, amount left, price % and end time, or nil.
useDrugFor ox_inventory item definitions: server = { export = 'Agency-Drugs.useDrug' }.

ما زلت عالقًا بعد هذه الصفحة؟ فريق الدعم يتولّى الأمر من هنا.