- piglatin
- gungan
- pirate
- klingon
- meanieweenie
- DJ
This commit is contained in:
Mustache Dom committed 2025-09-05 21:28:04 -07:00
1 parent 1f3d7154aa
commit 880479b435
28 files changed
+2035 -237

No files matched your search

-88
View File
@@ -1,88 +0,0 @@
local started = nil
function EcstasyEffect()
local startStamina = 50
SetFlash(0, 0, 500, 20000, 500)
while startStamina > 0 do
Wait(1000)
startStamina = startStamina - 1
RestorePlayerStamina(PlayerId(), 1.0)
if math.random(1, 100) < 51 then
SetFlash(0, 0, 500, 7000, 500)
ShakeGameplayCam('SMALL_EXPLOSION_SHAKE', 0.08)
end
end
if IsPedRunning(PlayerPedId()) then
SetPedToRagdoll(PlayerPedId(), math.random(1000, 3000), math.random(1000, 3000), 3, 0, 0, 0)
end
startStamina = 0
end
function MethBagEffect()
local startStamina = 30
TrevorEffect()
SetRunSprintMultiplierForPlayer(PlayerId(), 1.49)
while startStamina > 0 do
Wait(1000)
if math.random(5, 100) < 10 then
RestorePlayerStamina(PlayerId(), 1.0)
end
startStamina = startStamina - 1
if math.random(5, 100) < 51 then
TrevorEffect()
end
end
startStamina = 0
SetRunSprintMultiplierForPlayer(PlayerId(), 1.0)
end
function TrevorEffect()
StartScreenEffect("DrugsTrevorClownsFightIn", 3.0, 0)
Wait(3000)
StartScreenEffect("DrugsTrevorClownsFight", 3.0, 0)
Wait(3000)
StartScreenEffect("DrugsTrevorClownsFightOut", 3.0, 0)
StopScreenEffect("DrugsTrevorClownsFight")
StopScreenEffect("DrugsTrevorClownsFightIn")
StopScreenEffect("DrugsTrevorClownsFightOut")
end
function CokeBaggyEffect()
local startStamina = 20
local ped = PlayerPedId()
AlienEffect()
SetRunSprintMultiplierForPlayer(PlayerId(), 1.1)
while startStamina > 0 do
Wait(1000)
if math.random(1, 100) < 20 then
RestorePlayerStamina(PlayerId(), 1.0)
end
startStamina = startStamina - 1
if math.random(1, 100) < 10 and IsPedRunning(ped) then
SetPedToRagdoll(ped, math.random(1000, 3000), math.random(1000, 3000), 3, 0, 0, 0)
end
if math.random(1, 300) < 10 then
AlienEffect()
Wait(math.random(3000, 6000))
end
end
if IsPedRunning(ped) then
SetPedToRagdoll(ped, math.random(1000, 3000), math.random(1000, 3000), 3, 0, 0, 0)
end
startStamina = 0
SetRunSprintMultiplierForPlayer(PlayerId(), 1.0)
end
function AlienEffect()
StartScreenEffect("DrugsMichaelAliensFightIn", 3.0, 0)
Wait(math.random(5000, 8000))
StartScreenEffect("DrugsMichaelAliensFight", 3.0, 0)
Wait(math.random(5000, 8000))
StartScreenEffect("DrugsMichaelAliensFightOut", 3.0, 0)
StopScreenEffect("DrugsMichaelAliensFightIn")
StopScreenEffect("DrugsMichaelAliensFight")
StopScreenEffect("DrugsMichaelAliensFightOut")
end
+98 -13
View File
@@ -1,13 +1,13 @@
ps.registerCallback('md-drugs:client:consumedrugs', function(time, effect, anim, progresstext, status, item)
if not progressbar(progresstext .. ps.getLabel(item).. "!", time, anim ) then return end
if not ps.progressbar(progresstext .. ps.getLabel(item).. "!", time, anim ) then return end
for k, v in pairs (status) do
if k == 'health' then
local cur = GetEntityHealth(PlayerPedId())
SetEntityHealth(PlayerPedId(), cur + v)
elseif k == 'thirst' or k == 'stress' or k == 'hunger' then
TriggerServerEvent('md-drugs:server:updatestatus', k, v)
elseif k == 'thirst' or k == 'stress' or k == 'hunger' then
TriggerServerEvent('md-drugs:server:updatestatus', k, v)
elseif k == "armor" then
TriggerServerEvent('hospital:server:SetArmor', v)
TriggerServerEvent('consumables:server:useArmor')
@@ -33,28 +33,113 @@ RegisterNetEvent('md-drugs:client:recievebuff', function(type, amount)
until count == amount
SetRunSprintMultiplierForPlayer(PlayerPedId(), 1.00)
end
if type == 'strength' then
if type == 'strength' then
local strength = 0
SetCurrentPedWeapon(PlayerPedId(), 'weapon_unarmed', true)
SetWeaponDamageModifier(GetHashKey("WEAPON_UNARMED"), 50.0)
repeat
strength = strength + 1
Wait(1000)
Wait(1000)
until strength == amount
SetWeaponDamageModifier(GetHashKey("WEAPON_UNARMED"), 1.0)
end
end)
local function EcstasyEffect()
local startStamina = 50
SetFlash(0, 0, 500, 20000, 500)
while startStamina > 0 do
Wait(1000)
startStamina = startStamina - 1
RestorePlayerStamina(PlayerId(), 1.0)
if math.random(1, 100) < 51 then
SetFlash(0, 0, 500, 7000, 500)
ShakeGameplayCam('SMALL_EXPLOSION_SHAKE', 0.08)
end
end
if IsPedRunning(PlayerPedId()) then
SetPedToRagdoll(PlayerPedId(), math.random(1000, 3000), math.random(1000, 3000), 3, 0, 0, 0)
end
startStamina = 0
end
local function TrevorEffect()
StartScreenEffect("DrugsTrevorClownsFightIn", 3.0, 0)
Wait(3000)
StartScreenEffect("DrugsTrevorClownsFight", 3.0, 0)
Wait(3000)
StartScreenEffect("DrugsTrevorClownsFightOut", 3.0, 0)
StopScreenEffect("DrugsTrevorClownsFight")
StopScreenEffect("DrugsTrevorClownsFightIn")
StopScreenEffect("DrugsTrevorClownsFightOut")
end
local function MethBagEffect()
local startStamina = 30
TrevorEffect()
SetRunSprintMultiplierForPlayer(PlayerId(), 1.49)
while startStamina > 0 do
Wait(1000)
if math.random(5, 100) < 10 then
RestorePlayerStamina(PlayerId(), 1.0)
end
startStamina = startStamina - 1
if math.random(5, 100) < 51 then
TrevorEffect()
end
end
startStamina = 0
SetRunSprintMultiplierForPlayer(PlayerId(), 1.0)
end
local function AlienEffect()
StartScreenEffect("DrugsMichaelAliensFightIn", 3.0, 0)
Wait(math.random(5000, 8000))
StartScreenEffect("DrugsMichaelAliensFight", 3.0, 0)
Wait(math.random(5000, 8000))
StartScreenEffect("DrugsMichaelAliensFightOut", 3.0, 0)
StopScreenEffect("DrugsMichaelAliensFightIn")
StopScreenEffect("DrugsMichaelAliensFight")
StopScreenEffect("DrugsMichaelAliensFightOut")
end
local function CokeBaggyEffect()
local startStamina = 20
local ped = PlayerPedId()
AlienEffect()
SetRunSprintMultiplierForPlayer(PlayerId(), 1.1)
while startStamina > 0 do
Wait(1000)
if math.random(1, 100) < 20 then
RestorePlayerStamina(PlayerId(), 1.0)
end
startStamina = startStamina - 1
if math.random(1, 100) < 10 and IsPedRunning(ped) then
SetPedToRagdoll(ped, math.random(1000, 3000), math.random(1000, 3000), 3, 0, 0, 0)
end
if math.random(1, 300) < 10 then
AlienEffect()
Wait(math.random(3000, 6000))
end
end
if IsPedRunning(ped) then
SetPedToRagdoll(ped, math.random(1000, 3000), math.random(1000, 3000), 3, 0, 0, 0)
end
startStamina = 0
SetRunSprintMultiplierForPlayer(PlayerId(), 1.0)
end
RegisterNetEvent('md-drugs:client:applyFeeling', function(effect)
if effect == "alien" then
AlienEffect()
if effect == "alien" then
AlienEffect()
elseif effect == "ecstacy" then
EcstasyEffect()
elseif effect == "meth" then
MethBagEffect()
elseif effect == "coke" then
CokeBaggyEffect()
elseif effect == "trevor" then
TrevorEffect()
elseif effect == "meth" then
MethBagEffect()
elseif effect == "coke" then
CokeBaggyEffect()
elseif effect == "trevor" then
TrevorEffect()
end
end)
+1 -1
View File
@@ -5,7 +5,7 @@ local function SpawnDealer()
local getDealers = ps.callback('md-drugs:server:getDealers')
for k,v in pairs(getDealers) do
local Ped = "g_m_y_famdnf_01"
ps.requestModel(Ped, Config.RequestModelTime)
ps.requestModel(Ped, 30000)
local loc = json.decode(v.coords)
dealer[k] = CreatePed(0, Ped,loc.x,loc.y, loc.z-1, loc.h, false, false)
Freeze(dealer[k], true, loc.h)
+4 -23
View File
@@ -2,17 +2,6 @@
local minigametype = Config.minigametype
local dispatch = Config.Dispatch
function loadParticle(dict)
if not HasNamedPtfxAssetLoaded(dict) then
RequestNamedPtfxAsset(dict)
end
while not HasNamedPtfxAssetLoaded(dict) do
Wait(0)
end
SetPtfxAssetNextCall(dict)
end
function minigame()
local time = 0
local game = Config.Minigames
@@ -86,23 +75,18 @@ function minigame()
Wait(1000)
time = time + 1
until successes or time == 100
elseif minigametype == 'none' then
return true
elseif minigametype == 'none' then
return true
else
print"^1 SCRIPT ERROR: Md-Drugs set your minigame with one of the options!"
end
end
end
function GetRep()
local rep = ps.callback('md-drugs:server:GetRep')
return rep
end
function sorter(sorting, value)
table.sort(sorting, function(a, b) return a[value] < b[value] end)
end
function PoliceCall(chance)
local math = math.random(1,100)
if math <= chance then
@@ -150,7 +134,6 @@ function GetCops(number)
if amount >= number then return true else ps.notify('You Need '.. number - amount .. ' More Cops To Do This', 'error') end
end
function Freeze(entity, toggle, head)
SetEntityInvincible(entity, toggle)
SetEntityAsMissionEntity(entity, toggle, toggle)
@@ -249,10 +232,8 @@ function StartRay2()
until run == false
end
ps.registerCallback('md-drugs:client:uncuff', function(data)
if not progressbar(data, 4000, 'uncuff') then return end
if not ps.progressbar(data, 4000, 'uncuff') then return end
return true
end)
+3 -3
View File
@@ -11,9 +11,9 @@ local function SpawnCarPedChase()
started = true
ps.callback('md-drugs:server:RegisterLean')
ps.requestModel("pounder", Config.RequestModelTime)
ps.requestModel("ig_priest", Config.RequestModelTime)
ps.requestModel("cargobob3", Config.RequestModelTime)
ps.requestModel("pounder", 30000)
ps.requestModel("ig_priest", 30000)
ps.requestModel("cargobob3", 30000)
local leancar = CreateVehicle("pounder", start.x+3, start.y-2, start.z-1, 52.0, true, false)
local driver = CreatePed(26, "ig_priest", start.x, start.y, start.z, 268.9422, false, false)
+10
View File
@@ -2,6 +2,16 @@ local tableout = false
local dirtylsd = false
local locations = ps.callback('md-drugs:server:GetLSDLocations')
local function loadParticle(dict)
if not HasNamedPtfxAssetLoaded(dict) then
RequestNamedPtfxAsset(dict)
end
while not HasNamedPtfxAssetLoaded(dict) do
Wait(0)
end
SetPtfxAssetNextCall(dict)
end
local function createLabKit(coord, head)
local labkit = CreateObject("v_ret_ml_tablea", coord.x, coord.y, coord.z - 1, true, false)
SetEntityHeading(labkit, head)
+14 -1
View File
@@ -1,4 +1,17 @@
local locations = ps.callback('md-drugs:server:GetMescalineLocs')
local badTrip = 20
local function AlienEffect()
StartScreenEffect("DrugsMichaelAliensFightIn", 3.0, 0)
Wait(math.random(5000, 8000))
StartScreenEffect("DrugsMichaelAliensFight", 3.0, 0)
Wait(math.random(5000, 8000))
StartScreenEffect("DrugsMichaelAliensFightOut", 3.0, 0)
StopScreenEffect("DrugsMichaelAliensFightIn")
StopScreenEffect("DrugsMichaelAliensFight")
StopScreenEffect("DrugsMichaelAliensFightOut")
end
for k, v in pairs (locations.DryOutMescaline) do
ps.boxTarget('dryoutMesc'..k, v.loc, {length = v.l, width = v.w, height = 1.0, rotation = v.rot}, {
{
@@ -25,7 +38,7 @@ RegisterNetEvent("md-drugs:client:takemescaline", function()
local weapon = ''
if chance2 == 100 then weapon = 'weapon_rpg' else weapon = 'weapon_flaregun' end
if not ps.progressbar(ps.lang('mescaline.eat'), 4000, 'uncuff') then return end
if chance <= Config.Badtrip then
if chance <= badTrip then
AlienEffect()
local clone = ClonePed(PlayerPedId(), false, false, true)
SetEntityAsMissionEntity(clone)
+3 -3
View File
@@ -16,9 +16,9 @@ local function SpawnMethCarPedChase()
startedmeth = true
ps.callback('md-drugs:server:registerMeth')
ps.requestModel("journey", Config.RequestModelTime)
ps.requestModel("a_m_m_hillbilly_02", Config.RequestModelTime)
ps.requestModel("cargobob3", Config.RequestModelTime)
ps.requestModel("journey", 30000)
ps.requestModel("a_m_m_hillbilly_02", 30000)
ps.requestModel("cargobob3", 30000)
local methcar = CreateVehicle("journey", start.x+3, start.y-2, start.z-1, 52.0, true, false)
local methdriver = CreatePed(26, "a_m_m_hillbilly_02", start.x, start.y, start.z, 268.9422, false, false)
+4 -3
View File
@@ -1,6 +1,7 @@
local carryPackage = nil
local onMission = false
local locations = ps.callback('md-drugs:server:GetOxyLocs')
local pdAlert = 90
local function getRoute()
local Route = ps.callback('md-drugs:server:getRoute')
@@ -11,7 +12,7 @@ local function getRoute()
end
SetNewWaypoint(Route.x, Route.y)
ps.requestModel('g_m_y_famdnf_01', Config.RequestModelTime)
ps.requestModel('g_m_y_famdnf_01', 30000)
local oxybuyer = CreatePed(0, 'g_m_y_famdnf_01',Route.x,Route.y,Route.z-1, Route.w, false, false)
Freeze(oxybuyer, true, Route.w)
local timeOut = 300
@@ -21,7 +22,7 @@ local function getRoute()
timeOut = timeOut - 1
until #(GetEntityCoords(PlayerPedId()) - vector3(Route.x,Route.y,Route.z)) < 5.0 or timeOut == 0
PoliceCall(Config.PoliceAlertOxy)
PoliceCall(pdAlert)
ps.entityTarget(oxybuyer,{
{
label = ps.lang('oxy.targetHandoff'),
@@ -49,7 +50,7 @@ for k, v in pairs(locations.OxyPayForTruck) do
icon = 'fa-solid fa-truck-fast',
label = ps.lang('oxy.targetPay'),
action = function()
ps.requestModel("burrito3", Config.RequestModelTime)
ps.requestModel("burrito3", 30000)
local paid = ps.callback('md-drugs:server:payfortruck', false)
if not paid then return end
+17
View File
@@ -1,3 +1,20 @@
local function EcstasyEffect()
local startStamina = 50
SetFlash(0, 0, 500, 20000, 500)
while startStamina > 0 do
Wait(1000)
startStamina = startStamina - 1
RestorePlayerStamina(PlayerId(), 1.0)
if math.random(1, 100) < 51 then
SetFlash(0, 0, 500, 7000, 500)
ShakeGameplayCam('SMALL_EXPLOSION_SHAKE', 0.08)
end
end
if IsPedRunning(PlayerPedId()) then
SetPedToRagdoll(PlayerPedId(), math.random(1000, 3000), math.random(1000, 3000), 3, 0, 0, 0)
end
startStamina = 0
end
ps.registerCallback("md-drugs:client:shrooms", function()
if not ps.progressbar(ps.lang('shrooms.eat'), 5000, 'eat') then return end
+12 -2
View File
@@ -65,9 +65,19 @@ CreateThread(function()
RefreshInterior(BikerWeedFarm.interiorId)
end)
local function AlienEffect()
StartScreenEffect("DrugsMichaelAliensFightIn", 3.0, 0)
Wait(math.random(5000, 8000))
StartScreenEffect("DrugsMichaelAliensFight", 3.0, 0)
Wait(math.random(5000, 8000))
StartScreenEffect("DrugsMichaelAliensFightOut", 3.0, 0)
StopScreenEffect("DrugsMichaelAliensFightIn")
StopScreenEffect("DrugsMichaelAliensFight")
StopScreenEffect("DrugsMichaelAliensFightOut")
end
RegisterNetEvent("md-drugs:client:dodabs", function()
if not ps.progressbar(ps.lang('weed.dabs'), 4000, 'bong2') then AlienEffect() return end
AlienEffect()
end)
local function createBluntOptions(contextId, contextTitle, eventLabelPrefix, tableName)
@@ -89,7 +99,7 @@ local function createBluntOptions(contextId, contextTitle, eventLabelPrefix, tab
end
}
end
sorter(options, 'title')
ps.sorter(options, 'title')
ps.menu(contextTitle, contextTitle, options)
end
+116 -30
View File
@@ -1,27 +1,77 @@
local miss = false
local function SetUpPeds()
AddRelationshipGroup('setups')
local ped = GetEntityCoords(PlayerPedId())
local peds = {
{x = ped.x+3, y = ped.y-5, z = ped.z-1, },
{x = ped.x+6, y = ped.y-10, z = ped.z-1,},
{x = ped.x+-2,y = ped.y+5, z = ped.z-1,},
{x = ped.x+8, y = ped.y-12, z = ped.z-1,},
{x = ped.x+5, y = ped.y-2, z = ped.z-1, },
{x = ped.x+2, y = ped.y-20, z = ped.z-1,},
{x = ped.x+1, y = ped.y-10, z = ped.z-1,},
}
for i = 1, #peds do
local k = peds[i]
i = CreatePed(0, "g_m_y_famdnf_01", k.x, k.y, k.z, 90.0, true, true)
SetPedRelationshipGroupHash(i, 'setups')
GiveWeaponToPed(i, "weapon_pistol", 1, false, true)
TaskCombatPed(i, PlayerPedId(), 0, 16)
SetPedCombatAttributes(i, 46, true)
end
local settings = ps.callback('md-drugs:server:GetWSsettings')
function SetUpPeds(drugCount)
local attackerCount = settings.WholesaleAmbushBase
if settings.WholesaleAmbushScale then
if drugCount > settings.WholesaleAmbushTier1 then
attackerCount = 3
end
if drugCount > settings.WholesaleAmbushTier2 then
attackerCount = 4
end
if drugCount > settings.WholesaleAmbushTier3 then
attackerCount = 5
end
end
local weaponTier = settings.WholesaleWeaponsTier1
if settings.WholesaleWeaponTiers then
if drugCount > settings.WholesaleAmbushTier3 then
weaponTier = settings.WholesaleWeaponsTier4
elseif drugCount > settings.WholesaleAmbushTier2 then
weaponTier = settings.WholesaleWeaponsTier3
elseif drugCount > settings.WholesaleAmbushTier1 then
weaponTier = settings.WholesaleWeaponsTier2
end
end
local playerPed = PlayerPedId()
local playerCoords = GetEntityCoords(playerPed, false)
local models = {"g_m_y_ballasout_01", "g_m_y_famdnf_01", "g_m_y_famca_01", "g_m_y_mexgoon_01", "g_m_y_salvagoon_01"}
for i = 1, attackerCount do
local angle = (360 / attackerCount) * i
local x = playerCoords.x + math.cos(math.rad(angle)) * 15
local y = playerCoords.y + math.sin(math.rad(angle)) * 15
local z = playerCoords.z
local modelHash = GetHashKey(models[math.random(1, #models)])
ps.requestModel(modelHash)
local ped = CreatePed(4, modelHash, x, y, z, 0.0, true, false)
local weapon = weaponTier[math.random(1, #weaponTier)]
SetPedRelationshipGroupHash(ped, GetHashKey("HATES_PLAYER"))
SetPedCombatAttributes(ped, 46, true)
SetPedCombatAttributes(ped, 0, true)
SetPedCombatAttributes(ped, 5, true)
SetPedCombatAttributes(ped, 2, true)
local healthMultiplier = 1.0
if drugCount > settings.WholesaleAmbushTier3 then
healthMultiplier = 1.5
elseif drugCount > settings.WholesaleAmbushTier2 then
healthMultiplier = 1.3
elseif drugCount > settings.WholesaleAmbushTier1 then
healthMultiplier = 1.2
end
local baseHealth = GetEntityHealth(ped)
SetEntityHealth(ped, math.floor(baseHealth * healthMultiplier))
GiveWeaponToPed(ped, GetHashKey(weapon), 500, false, true)
TaskCombatPed(ped, playerPed, 0, 16)
local blip = AddBlipForEntity(ped)
SetBlipAsShortRange(blip, true)
SetBlipColour(blip, 1)
SetBlipScale(blip, 0.7)
SetEntityAsNoLongerNeeded(ped)
end
local tierName = "Basic"
if drugCount > settings.WholesaleAmbushTier3 then
tierName = "Elite"
elseif drugCount > settings.WholesaleAmbushTier2 then
tierName = "Advanced"
elseif drugCount > settings.WholesaleAmbushTier1 then
tierName = "Medium"
end
ps.notify(string.format(ps.lang('wholesale.ambush'), attackerCount, tierName), 'error')
end
RegisterNetEvent("md-drugs:client:GetLocation", function(drug)
if not GetCops(Config.PoliceCount) then return end
if not GetCops(settings.PoliceCount) then return end
if miss then
ps.notify(ps.lang('wholesale.alreadyWholesale'), 'error')
else
@@ -29,8 +79,25 @@ RegisterNetEvent("md-drugs:client:GetLocation", function(drug)
local timer = 0
miss = true
SetNewWaypoint(loc.x, loc.y)
ps.requestModel("g_m_y_famdnf_01", Config.RequestModelTime)
local drugdealer = CreatePed(0, "g_m_y_famdnf_01",loc.x,loc.y,loc.z-1, 90.0, false, false)
if settings.WholesaleShowEstimates and drug.count > 0 then
local bonusTiers = math.floor(drug.count / 10)
local potentialBonus = math.min(bonusTiers * settings.WholesaleQuantityBonus, settings.WholesaleMaxBonus)
local bonusPercent = math.floor(potentialBonus * 100)
local minPayout = math.floor(drug.price.min * (1 + potentialBonus))
local maxPayout = math.floor(drug.price.max * (1 + potentialBonus))
local totalMinPayout = drug.count * minPayout
local totalMaxPayout = drug.count * maxPayout
ps.notify(string.format(ps.lang('wholesale.count'), drug.count), 'info')
if bonusPercent > 0 then
ps.notify(string.format(ps.lang('wholesale.bonus'), bonusPercent), 'info')
end
ps.notify(string.format(ps.lang('wholesale.estimate'), totalMinPayout, totalMaxPayout), 'info')
elseif drug.count <= 0 then
ps.notify(ps.lang('wholesale.no_drugs'), 'error')
end
ps.requestModel("g_m_y_famdnf_01", settings.RequestModelTime)
local current = "g_m_y_famdnf_01"
local drugdealer = CreatePed(0, current,loc.x,loc.y,loc.z-1, 90.0, false, false)
FreezeEntityPosition(drugdealer, true)
SetEntityInvincible(drugdealer, true)
ps.entityTarget(drugdealer, {{
@@ -38,12 +105,21 @@ RegisterNetEvent("md-drugs:client:GetLocation", function(drug)
icon = "fas fa-eye",
action = function()
local luck = math.random(1,100)
if luck <= Config.SuccessfulChance then
if luck <= settings.SuccessfulChance then
if not ps.progressbar(ps.lang('wholesale.wholesaling'), 4000, 'uncuff') then return end
TriggerServerEvent("md-drugs:server:SuccessSale", drug)
else
ps.notify(ps.lang('wholesale.uhoh'), 'error')
SetUpPeds()
ps.progressbar("Deal Going Bad", 4000, 'uncuff')
if settings.WholesaleAmbushEnabled then
SetUpPeds(drug.count)
end
if settings.WholesaleFailPoliceAlert > 0 then
local alertChance = math.random(1, 100)
if alertChance <= settings.WholesaleFailPoliceAlert then
PoliceCall(100)
end
end
TriggerServerEvent('md-drugs:server:CleanupWholesale')
end
Wait(3000)
DeleteEntity(drugdealer)
@@ -53,15 +129,25 @@ RegisterNetEvent("md-drugs:client:GetLocation", function(drug)
repeat
Wait(1000)
timer = timer + 1
until #(GetEntityCoords(PlayerPedId()) - vector3(loc.x, loc.y, loc.z) ) < 4.0 or timer == Config.WholesaleTimeout + 1
PoliceCall(Config.AlertPoliceWholesale)
if timer <= Config.WholesaleTimeout or #(GetEntityCoords(PlayerPedId()) - vector3(loc.x, loc.y, loc.z) ) < 4.0 then
until #(GetEntityCoords(PlayerPedId()) - vector3(loc.x, loc.y, loc.z) ) < 4.0 or timer == settings.WholesaleTimeout + 1
PoliceCall(settings.AlertPoliceWholesale)
if timer <= settings.WholesaleTimeout or #(GetEntityCoords(PlayerPedId()) - vector3(loc.x, loc.y, loc.z) ) < 4.0 then
timer = 0
else
ps.notify(ps.lang('wholesale.tooLong'), 'error')
DeleteEntity(drugdealer)
TriggerServerEvent('md-drugs:server:CleanupWholesale')
if settings.WholesaleResetOnTimeout then
miss = false
end
end
end
end)
RegisterNetEvent('md-drugs:client:WholesaleComplete', function(data)
local bonusText = ""
if data.bonus > 0 then
bonusText = " (+" .. data.bonus .. "% quantity bonus)"
end
ps.notify(string.format(ps.lang('wholesale.complete'), data.quantity, data.payout, bonusText), 'success')
end)
+1 -6
View File
@@ -3,10 +3,9 @@ author "mustache_dom"
description "drugs by mustache dom"
fx_version "cerulean"
game "gta5"
version '3.9.0'
version '4.0.0'
client_scripts {
'client/functions.lua',
'client/animationsandfunctions.lua',
'client/plantSpawns.lua',
'clientRun.lua',
}
@@ -25,11 +24,7 @@ shared_scripts {
lua54 'yes'
files {
'stream/mushroom.ytyp',
'stream/mushroom.ydr',
'client/**.lua',
'server/**.lua',
'locales/**.lua'
}
data_file 'DLC_ITYP_REQUEST' 'stream/mushroom.ytyp'
+261
View File
@@ -0,0 +1,261 @@
Lang = {}
Lang.Catches = {
notIn = 'Yo! You ain’t in the right SPOT, let’s gooooo!',
needItems = 'Whoa! You’re missing the ESSENTIALS, come on!',
notEnoughMoney = 'Uh-oh! Not enough CASH, gotta grind!',
buySuccess = 'BOOM! You copped %s %s for $%s, YEAH!',
itemMissings = 'CHECK IT! You need: \n',
itemNeeded = 'Grab that %s, LET’S GOOOO!',
cooldown = 'Hold up! Chill for a sec, speed racer!',
invalidItem = 'Uh-uh! That ain’t sold HERE, fam!',
onCooldownWarn = '%s tried to run %s but cooldown, BOOM!'
}
Lang.coke = {
targetPick = 'GRAB that coca leaf, LET’S GO!',
picking = 'Snatching those leaves, wooo!',
targetMakePow = 'Turn it into POWDER, party time!',
noleaf = 'Need a leaf first, LET’S HUSTLE!',
makePow = 'Choppin’ leaves into POWER, YA!',
targetCutCoke = 'Slice that cocaine, woohoo!',
targetBagCoke = 'Bag it UP, fam!',
teleIn = 'Step into the LAB, LIGHT IT UP!',
teleOut = 'Exit the lab, keep it moving!',
needBakingSoda = 'Baking soda NEEDED, come on!',
}
Lang.Cornerselling = {
inVeh = 'Yo, stranger alert! Stay safe!',
selling = 'Flippin’ %s for $%s, CASH TIME!',
deny = 'NAH, PASS THAT OFFER!',
wait = 'Hold tight, waiting on the crowd!',
nodrugs = 'No stock? Get back in the game!',
searching = 'Scanning for buyers, keep it HYPE!',
targetTakeBack = 'Grab back the goods, LET’S GO!',
targetSell = 'Sell %s of %s for $%s, PARTY!',
targetDeny = 'Decline that weak offer!',
stopped = 'You ain’t selling? COME ON!',
start = 'GO show your moves, LEGEND!',
gotRobbed = 'Yo, you got JACKED!',
gotBack = 'Reclaimed the goods, YEAH!',
notEnough = 'Not enough stock, HUSTLE UP!',
comDes = 'Sell that heat on the corner, LET’S GO!',
}
Lang.crack = {
targetMake = 'Cook that crack, turn it UP!',
cook = 'Heating it up, PARTY MODE!',
targetBag = 'Bag it tight, woohoo!',
bag = 'Packing it like a BOSS!',
}
Lang.Deliveries = {
targetGetDel = 'Grab a delivery mission, LET’S GO!',
targetOpenShop = 'Open that dealer shop, LIGHT IT UP!',
shopHeader = 'Dealer Shop, TIME TO SHINE!',
targetHandOff = 'Hand off the package, PARTY TIME!',
delivering = 'Delivering to the dealer, let’s get it!',
alreadyDelivering = 'Already moving that package, nonstop!',
slowAf = 'TOO SLOW! PICK IT UP!',
newDealerHelp = {
help = 'Place a dealer, LIGHT IT UP!',
name = 'Dealer name, YO!',
timeMin = 'Min time, stay hyped!',
timeMax = 'Max time, keep moving!',
},
DealerExists = 'Dealer already in the house, BOOM!',
deleteDealer = {
help = 'Remove a dealer, let’s GOO!',
name = 'Dealer name, YEAH!',
},
deleteDealerSuccess = 'Dealer deleted, PARTY ON!',
deleteDealerFail = 'Failed? Try again, NEVER STOP!',
}
Lang.heroin = {
targetPick = 'Grab that heroin, LIGHT IT UP!',
picking = 'Picking heroin, GET IT!',
targetCook = 'Cook it up, TURN IT UP!',
pbCook = 'Cooking that fire, WOO!',
targetPickup = 'Pick up the lab, LET’S GO!',
pbPickup = 'Picking up the lab, HYPE!',
targetClean = 'Clean that lab, SHINE!',
pbClean = 'Cleaning the lab, YEAH!',
targetDry = 'Dry out the plant, KEEP IT MOVIN’!',
pbDry = 'Drying plant, PARTY MODE!',
targetCutHeroin = 'Cut that heroin, BOOM!',
pbCutHeroin = 'Cutting it smooth, YEAH!',
targetBuyKit = 'Buy your lab kit, GET IT!',
pbBuyKit = 'Buying that kit, HYPE!',
tableout = 'Table’s already out, LIGHT IT UP!',
placing = 'Placing table down, WOO!',
targetFill = 'Fill that syringe, LET’S GOOOO!',
pbFill = 'Filling up, HYPE ENERGY!',
hasKitAlready = 'Kit already in play, BOOM!',
notEnoughMoney = 'Need $%s cash, hustle up!',
placedKit = 'Placed your lab kit, PARTY TIME!',
failed = 'Failed? Shake it off, KEEP MOVIN’!',
}
Lang.lean = {
stealFromTruck = 'Snag the truck, GET HYPED!',
startMission = 'Start lean mission, LET’S GO!',
notOnRun = 'Not on a run yet, COME ON!',
alreadyChasing = 'Already chasing a truck, WOO!',
}
Lang.lsd = {
targetHeat = 'Heating LSD, TURN IT UP!',
heating = 'Heating it UP, PARTY TIME!',
targetRefine = 'Refine that acid, LET’S GOOOO!',
refining = 'Refining, keep it lit!',
targetDipping = 'Dip those tabs, HYPE!',
dipping = 'Dipping, WOO WOO!',
targetPickup = 'Pick up the lab kit, LET’S GO!',
packup = 'Packing up, PARTY MODE!',
targetClean = 'Clean the lab kit, LIGHT IT UP!',
needCleaning = 'Need the cleaning kit, COME ON!',
cleaning = 'Cleaning, keep it hype!',
targetLys = 'Steal lysergic acid, BOOM!',
stealLys = 'Stealing, GET IT!',
targetDie = 'Snag diethylamide, PARTY TIME!',
stealDie = 'Stealing that fire, LET’S GOOOO!',
targetBuyTab = 'Buy tab paper, WOO!',
targetBuyKit = 'Buy LSD lab kit, HYPE ENERGY!',
alreadyOwn = 'Already got this, BOOM!',
buyingKit = 'Buying kit, PARTY ON!',
tableout = 'Table out already, LET’S GO!',
placing = 'Placing down, KEEP IT LIT!',
failed = 'Failed? Shake it off, PARTY TIME!',
}
Lang.mesc = {
targetPick = 'Grab that cactus, WOO!',
picking = 'Picking cactus, LET’S GOOOO!',
targetDry = 'Dry the cactus, HYPE!',
dry = 'Drying cactus, PARTY MODE!',
}
Lang.meth = {
alreadyChasing = 'Chasing a truck already, WOO!',
targetStealFromCar = 'Snag the meth car, LIGHT IT UP!',
targetHeist = 'Start meth mission, GET HYPED!',
started = 'Meth’s cooking, BOOM!',
increaseHeat = 'Turn up the heat, PARTY TIME!',
targetBag = 'Bag meth, HYPE ENERGY!',
targetCook = 'Cook meth, LET’S GOOOO!',
targetGrabTray = 'Grab the tray, WOO!',
targetHeat = 'Adjust those dials, KEEP IT LIT!',
targetSmash = 'Smash the tray, BOOM!',
targetStealEPH = 'Steal ephedrine, GET IT!',
stealingEPH = 'Stealing it, PARTY ON!',
targetStealACE = 'Snag acetone, WOO!',
stealingACE = 'Stealing acetone, LET’S GOOOO!',
notOnRun = 'Not on a meth run, COME ON!',
onCooldown = 'Cooldown in effect, CHILL!',
teleIn = 'Step into the lab, HYPE!',
teleOut = 'Exit the lab, PARTY MODE!',
}
Lang.oxy = {
ditchCar = 'Hot van? Leave it, WOO!',
targetHandoff = 'Hand off the package, LET’S GO!',
handingoff = 'Handing it off, HYPE ENERGY!',
emptyHands = 'Not carrying anything, GET MOVING!',
targetPay = 'Rent oxy van, PARTY TIME!',
keys = 'Keys are in the van, BOOM!',
targetGetPackage = 'Grab the package, WOO!',
alreadyCarrying = 'Already got a package, KEEP IT LIT!',
paid = 'Paid $%s, LET’S GOOOO!',
notOn = 'Not on a route, HYPE!',
}
Lang.pharma = {
input = {
header = 'Who’s getting the prescription? LET’S GO!',
title1 = 'Player name, GET HYPED!',
title2 = 'Prescription, PARTY TIME!',
},
write = 'Writing prescription, WOO!',
opening = 'Opening the bottle, LIGHT IT UP!',
targetFill = 'Fill that prescription, HYPE!',
fill = 'Filling up, LET’S GOOOO!',
canceled = 'Canceled? Shake it off, PARTY MODE!',
unbottle = 'Opened the bottle, BOOM!',
}
Lang.shrooms = {
targetPick = 'Pick those shrooms, WOO!',
picking = 'Picking shrooms, LET’S GOOOO!',
eat = 'Eating shrooms, PARTY TIME!',
cancel = 'Decided not to? HYPE!',
took = 'You took some shrooms! LET’S GO!',
}
Lang.weed = {
targetPick = 'Grab that weed, WOO!',
picking = 'Picking weed, PARTY MODE!',
targetDry = 'Dry the weed, LET’S GOOOO!',
noDry = 'Need wet weed first, HYPE ENERGY!',
wait = 'Waiting for it to dry... KEEP IT LIT!',
take = 'Ready to take weed, BOOM!',
targetDryed = 'Pickup that weed, PARTY TIME!',
teleportIn = 'Enter the grow house, HYPE!',
teleportOut = 'Leave the grow house, WOO!',
dabs = 'Doing some dabs, LET’S GOOOO!',
bluntWrap = 'Dipping syrup to make %s, PARTY MODE!',
rollBlunt = 'Rolling a %s, BOOM!',
targetSales = 'Buy from dealer, HYPE!',
buying = 'Buying %s from dealer, WOO!',
itemDoesntExist = 'Item doesn’t exist here, LET’S GO!',
needItem = 'Need a %s for this, PARTY TIME!',
crackBlunt = 'Cracking open a blunt, HYPE ENERGY!',
}
Lang.wholesale = {
alreadyWholesale = 'Already wholesaling, WOO!',
targetBuyer = 'Talk to the buyer, LET’S GOOOO!',
wholesaling = 'Wholesaling drugs, PARTY MODE!',
uhoh = 'Buyer’s getting sketchy, HYPE!',
tooLong = 'Buyer waited too long, WOO!',
notEnoughCops = 'Not enough cops, KEEP IT LIT!',
count = 'Quantity detected: %s, BOOM!',
bonus = 'Quantity bonus: +%s%%, HYPE!',
estimate = 'Estimated payout: $%s - $%s, PARTY TIME!',
no_drugs = 'No drugs to sell, LET’S GOOOO!',
ambush = 'AMBUSH! %s attackers with %s weapons coming! WOO!',
complete = 'Sold %s items for $%s%s, HYPE!',
min_quantity = 'Gotta sell at least %s to wholesale, PARTY MODE!',
deal_failed_cleanup = 'Deal failed? Try again, KEEP IT LIT!',
}
Lang.xtc = {
alreadyOut = 'Press is out already, WOO!',
settingDown = 'Setting down the press, LET’S GO!',
noPressOut = 'No press out? HYPE!',
targetMake = 'Press pills, PARTY TIME!',
making = 'Pressing a %s, BOOM!',
targetPickup = 'Pick up press, HYPE!',
picking = 'Picking up press, LET’S GOOOO!',
targetStealMDP2P = 'Steal MDP2P, PARTY MODE!',
stealingMDP2P = 'Stealing it, WOO!',
fail = 'Damn dude, you suck, KEEP IT LIT!',
targetStealIsosafrole = 'Steal isosafrole, HYPE!',
stealingIsosafrole = 'Stealing it, LET’S GOOOO!',
targetRaw = 'Make raw XTC, PARTY TIME!',
makingRaw = 'Making raw XTC, WOO!',
getPress = 'Get the press, LET’S GOOOO!',
buySingle = 'Buy single press for $%s, HYPE!',
buyp = 'Buying press, BOOM!',
targetStamp = 'Stamp XTC, PARTY MODE!',
stamp_desc = 'Stamp %s pills, WOO!',
stamping = 'Stamping %s pills, LET’S GO!',
noPills = 'No unstamped pills? HYPE!',
}
Lang.merchant = {
targetOpen = 'Open merchant menu, LET’S GOOOO!',
}
return Lang
+10 -1
View File
@@ -219,7 +219,16 @@ Lang.wholesale = {
wholesaling = 'Wholesaling Drugs',
uhoh = 'The Buyer Is Getting Sketchy',
tooLong = 'The Buyer Waited Too Long',
notEnoughCops = 'Not Enough Cops On Duty'
notEnoughCops = 'Not Enough Cops On Duty',
count = 'Quantity detected: %s',
bonus = 'Quantity bonus: +%s%%',
estimate = 'Estimated payout: $%s - $%s',
no_drugs = 'You do not have any of this drug to sell',
ambush = 'Ambush! %s attackers with %s weapons are approaching!',
complete = 'Sold %s items for $%s%s',
min_quantity = 'You must sell at least %s items to wholesale',
deal_failed_cleanup = 'Deal failed - you can try again'
}
Lang.xtc = {
+262
View File
@@ -0,0 +1,262 @@
Lang = {}
Lang.Catches = {
notIn = 'Yousa not bein in da right place-o!',
needItems = 'Yousa no havin da tings needed!',
notEnoughMoney = 'Yousa too broke, mooey mooey!',
buySuccess = 'Yousa buyin %s %s for %s credits!',
itemMissings = 'Yousa needin dis stuff: \n',
itemNeeded = 'Yousa needin %s',
cooldown = 'Ooooh, slow down speeda racer!',
invalidItem = 'Dis item not bein sold here, okeeday?',
onCooldownWarn = '%s tryin to do da event %s \n while still on da cooldown!'
}
Lang.coke = {
targetPick = 'Pickin coca leafies, okeeday',
picking = 'Meesa pickin coca leaf',
targetMakePow = 'Makin da powdery stuff',
noleaf = 'Yousa needin a coca leaf!',
makePow = 'Choppin leafies into da powder',
targetCutCoke = 'Cutty-cut da cocaine',
targetBagCoke = 'Baggin da cocaine',
teleIn = 'Meesa goin inside da lab',
teleOut = 'Meesa leavin da lab',
needBakingSoda = 'Yousa needin bakin soda for dis, okeeday',
}
Lang.Cornerselling = {
inVeh = 'Stranger danger, stay outta da speeder!',
selling = 'Meesa sellin %s for %s credits',
deny = 'Nosa, meesa no likin dat offer!',
wait = 'Waitin for da customer to come',
nodrugs = 'Yousa not havin no tings to sell',
searching = 'Meesa lookin for customers, okeeday',
targetTakeBack = 'Takin back da stuff',
targetSell = 'Sellin %s of %s for %s credits',
targetDeny = 'Sayin nosa to da offer',
stopped = 'Yousa too lazy, can’t even sell nuttin!',
start = 'Go make yo mama proud, okeeday!',
gotRobbed = 'Yousa got robbed, mooey mooey!',
gotBack = 'Yousa gots yo tings back!',
notEnough = 'Yousa no havin enough of dis item',
comDes = 'Sellin da tings on da corner',
}
Lang.crack = {
targetMake = 'Cookin da cracky-crack',
cook = 'Meesa cookin crack',
targetBag = 'Baggin da crack',
bag = 'Meesa baggin crack',
}
Lang.Deliveries = {
targetGetDel = 'Gettin da deliver mission',
targetOpenShop = 'Openin da dealer shop',
shopHeader = 'Dealer shop, okeeday',
targetHandOff = 'Handin da package to da dealer',
delivering = 'Meesa givin da package to da drug dealer',
alreadyDelivering = 'Yousa already doin a delivery, okeeday',
slowAf = 'Yousa too slow, oh no!',
newDealerHelp = {
help = 'Placina dealer',
name = 'Dealer name',
timeMin = 'Da minimum time',
timeMax = 'Da maximum time',
},
DealerExists = 'Dis dealer already existin!',
deleteDealer = {
help = 'Deletin a dealer',
name = 'Dealer name',
},
deleteDealerSuccess = 'Meesa deletin da dealer!',
deleteDealerFail = 'Nosa! Failed deletin da dealer!',
}
Lang.heroin = {
targetPick = 'Pickin da heroin plant',
picking = 'Meesa pickin da heroin',
targetCook = 'Cookin da heroin',
pbCook = 'Meesa cookin heroin up',
targetPickup = 'Pickin up da lab',
pbPickup = 'Meesa pickin up lab',
targetClean = 'Cleanin da lab',
pbClean = 'Meesa cleanin da lab',
targetDry = 'Dryin da plant',
pbDry = 'Meesa dryin out plant',
targetCutHeroin = 'Cuttin heroin',
pbCutHeroin = 'Meesa cuttin heroin',
targetBuyKit = 'Buyin da heroin kit',
pbBuyKit = 'Meesa buyin da heroin kit',
tableout = 'Yousa already havin a table out!',
placing = 'Placin down table',
targetFill = 'Fillin syringe',
pbFill = 'Meesa fillin syringe',
hasKitAlready = 'Yousa already havin a kit',
notEnoughMoney = 'Yousa needin %s credits for dis',
placedKit = 'Yousa placed down da kit',
failed = 'Oh no! Yousa fail makin heroin, lost all da stuff!',
}
Lang.lean = {
stealFromTruck = 'Stealin from da truck',
startMission = 'Startin lean mission',
notOnRun = 'Yousa not on no lean run',
alreadyChasing = 'Yousa already chasin a truck!',
}
Lang.lsd = {
targetHeat = 'Heat up da LSD',
heating = 'Meesa heating da LSD',
targetRefine = 'Refine da acid',
refining = 'Refinin da acid',
targetDipping = 'Dippin tabs',
dipping = 'Meesa dippin tabs',
targetPickup = 'Pickin up da lab kit',
packup = 'Packin da lab kit',
targetClean = 'Cleanin da lab kit',
needCleaning = 'Yousa needin a cleanin kit',
cleaning = 'Meesa cleanin lab kit',
targetLys = 'Stealin lysergic acid',
stealLys = 'Meesa stealin da acid',
targetDie = 'Stealin diethylamide',
stealDie = 'Meesa stealin da diethylamide',
targetBuyTab = 'Buyin da tab paper',
targetBuyKit = 'Buyin da LSD kit',
alreadyOwn = 'Yousa already havin dis ting',
buyingKit = 'Meesa buyin da LSD kit',
tableout = 'Yousa already havin table out!',
placing = 'Placin da kit down!',
failed = 'Yousa suck makin da drugs, okeeday',
}
Lang.mesc = {
targetPick = 'Pickin cactus',
picking = 'Meesa pickin cactus',
targetDry = 'Dryin cactus',
dry = 'Meesa dryin cactus',
}
Lang.meth = {
alreadyChasing = 'Yousa already chasin da truck',
targetStealFromCar = 'Stealin from meth car',
targetHeist = 'Startin meth mission',
started = 'Yousa already cookin meth',
increaseHeat = 'Yousa increasin da heat',
targetBag = 'Baggin meth',
targetCook = 'Cookin meth',
targetGrabTray = 'Grabbin da tray',
targetHeat = 'Adjustin da dials',
targetSmash = 'Smashin da tray',
targetStealEPH = 'Stealin ephedrine',
stealingEPH = 'Meesa stealin ephedrine',
targetStealACE = 'Stealin acetone',
stealingACE = 'Meesa stealin acetone',
notOnRun = 'Yousa not on no meth run',
onCooldown = 'Yousa bein on cooldown!',
teleIn = 'Enterin da lab',
teleOut = 'Leavin da lab',
}
Lang.oxy = {
ditchCar = 'Dis van hot! Yousa leave it somewhere',
targetHandoff = 'Handin da package',
handingoff = 'Meesa handin off da package',
emptyHands = 'Yousa no carryin nuttin',
targetPay = 'Rentin oxy van',
keys = 'Da keys in da van',
targetGetPackage = 'Grabbin da package',
alreadyCarrying = 'Yousa already carryin package',
paid = 'Yousa payin %s credits to rent van',
notOn = 'Yousa not on no route',
}
Lang.pharma = {
input = {
header = 'Who meesa givin da prescription to?',
title1 = 'Da player name',
title2 = 'Prescription',
},
write = 'Meesa writin prescription',
opening = 'Openin da bottle',
targetFill = 'Fillin prescription',
fill = 'Meesa fillin prescription',
canceled = 'Yousa cancel da prescription',
unbottle = 'Meesa openin da bottle',
}
Lang.shrooms = {
targetPick = 'Pickin shroomies',
picking = 'Meesa pickin shrooms',
eat = 'Meesa eatin shrooms',
cancel = 'Nosa, no doin da shrooms',
took = 'Yousa takin da shrooms!',
}
Lang.weed = {
targetPick = 'Pickin da weed',
picking = 'Meesa pickin weed',
targetDry = 'Dryin da weed',
noDry = 'Yousa needin da wet weed',
wait = 'Waitin for da weed to dry, okeeday',
take = 'Ready to take weed!',
targetDryed = 'Pickin up da dry weed',
teleportIn = 'Meesa goin in da grow house',
teleportOut = 'Meesa leavin da grow house',
dabs = 'Meesa doin da dabs',
bluntWrap = 'Dippin syrup makin %s',
rollBlunt = 'Rollin a %s',
targetSales = 'Buyin from da dealer',
buying = 'Meesa buyin %s from dealer',
itemDoesntExist = 'Nosa, dis ting no exist here',
needItem = 'Yousa needin %s for dis',
crackBlunt = 'Crackin open da blunt',
}
Lang.wholesale = {
alreadyWholesale = 'Yousa already wholesalin!',
targetBuyer = 'Talkin to da buyer',
wholesaling = 'Meesa wholesalin da drugs',
uhoh = 'Buyer gettin all sketchy, uh oh!',
tooLong = 'Buyer waitin too long!',
notEnoughCops = 'Nosa! Not enough cops here',
count = 'Quantity detected: %s',
bonus = 'Quantity bonus: +%s%%',
estimate = 'Estimated payout: %s - %s credits',
no_drugs = 'Yousa not havin dis ting to sell',
ambush = 'Ambush! %s attackers wit %s weapons comin!',
complete = 'Sold %s items for %s credits%s',
min_quantity = 'Yousa must be sellin at least %s',
deal_failed_cleanup = 'Deal failed, yousa tryin again',
}
Lang.xtc = {
alreadyOut = 'Yousa already havin da press out',
settingDown = 'Placin down da press',
noPressOut = 'Yousa no havin no press out',
targetMake = 'Pressin da pills',
making = 'Pressin a %s pill',
targetPickup = 'Pickin up da press',
picking = 'Meesa pickin up da press',
targetStealMDP2P = 'Stealin MDP2P',
stealingMDP2P = 'Meesa stealin MDP2P',
fail = 'Nosa! Yousa fail dis ting!',
targetStealIsosafrole = 'Stealin isosafrole',
stealingIsosafrole = 'Meesa stealin isosafrole',
targetRaw = 'Makin raw XTC',
makingRaw = 'Meesa makin raw XTC',
getPress = 'Gettin da press',
buySingle = 'Buyin one press for %s credits',
buyp = 'Meesa buyin press',
targetStamp = 'Stampin da XTC',
stamp_desc = 'Stampin %s pills',
stamping = 'Stampin %s pills',
noPills = 'Yousa not havin no pills to stamp',
}
Lang.merchant = {
targetOpen = 'Openin da merchant menu',
}
return Lang
+262
View File
@@ -0,0 +1,262 @@
Lang = {}
Lang.Catches = {
notIn = 'bIvumtaHbe’ Daq lughDaq',
needItems = 'Dochmey lugh DaHutlh',
notEnoughMoney = 'HuchlIj machqu’',
buySuccess = 'DaSuqta’ %s %s chenmoHmeH $%s',
itemMissings = 'DaHutlh Dochmey \n',
itemNeeded = 'DaHutlh %s',
cooldown = 'yIyep! nomqu’ bIvum',
invalidItem = 'Dochvam naDbe’ SuvwI’',
onCooldownWarn = '%s tay’mo’ nIDta’ %s ghu’vamDaq (cooldown)'
}
Lang.coke = {
targetPick = 'coca tI’ jon',
picking = 'coca tI’ lupung',
targetMakePow = 'cocaine hach',
noleaf = 'coca tI’ DaHutlh',
makePow = 'tI’ QorwI’powDaq rurchu’',
targetCutCoke = 'cocaine polHa’',
targetBagCoke = 'cocaine pochHa’',
teleIn = 'labDaq yI’el',
teleOut = 'labvo’ yImej',
needBakingSoda = 'DochvamvaD baking soda DaHutlh'
}
Lang.Cornerselling = {
inVeh = 'nov vIQoy!',
selling = '%s DajonmeH $%s',
deny = 'Qo’! bIDoH',
wait = 'lojmItDaq lojmIt',
nodrugs = 'Dochmey Hutlh',
searching = 'nuvmey SamtaH',
targetTakeBack = 'DochmeylIj cheghmoH',
targetSell = '%s Doch %s jonmeH $%s',
targetDeny = 'Qoch',
stopped = 'bIQongmo’ bIjonlaHbe’',
start = 'SoSlI’ quvmoH!',
gotRobbed = 'DochmeylIj jonlu’!',
gotBack = 'DochmeylIj Daja’chu’ta’',
notEnough = 'Dochvam machqu’ Daghaj',
comDes = 'lojmItDaq Dochmey jon'
}
Lang.crack = {
targetMake = 'crack vuv',
cook = 'crack vuvtaH',
targetBag = 'crack pochHa’',
bag = 'crack pochHa’taH'
}
Lang.Deliveries = {
targetGetDel = 'ngoq Qu’ Hev',
targetOpenShop = 'dealer mIch poSmoH',
shopHeader = 'dealer mIch',
targetHandOff = 'paket nob',
delivering = 'paket nobtaH',
alreadyDelivering = 'paket naQ DInobtaH',
slowAf = 'tughqu’ bIvum!',
newDealerHelp = {
help = 'dealer ghoS',
name = 'dealer pong',
timeMin = 'poHHom puS',
timeMax = 'poHHom nI’'
},
DealerExists = 'dealer tu’lu already',
deleteDealer = {
help = 'dealer qIl',
name = 'dealer pong',
},
deleteDealerSuccess = 'dealer qIlta’',
deleteDealerFail = 'dealer qIlHa’'
}
Lang.heroin = {
targetPick = 'heroin tI’ jon',
picking = 'heroin tI’ lupung',
targetCook = 'heroin vuv',
pbCook = 'heroin vuvtaH',
targetPickup = 'lab lupung',
pbPickup = 'lab lupungtaH',
targetClean = 'lab Say’moH',
pbClean = 'lab Say’moHtaH',
targetDry = 'tI’ mach puv',
pbDry = 'tI’ mach puvtaH',
targetCutHeroin = 'heroin polHa’',
pbCutHeroin = 'heroin polHa’taH',
targetBuyKit = 'heroin lab jan je’',
pbBuyKit = 'heroin lab jan je’taH',
tableout = 'raS SoHtaH already',
placing = 'raS lanlu’taH',
targetFill = 'syringe teblI’',
pbFill = 'syringe teblI’taH',
hasKitAlready = 'lab jan DaHutlh already',
notEnoughMoney = 'DochvamvaD $%s Huch DaHutlh',
placedKit = 'lab jan Dalanpu’',
failed = 'heroin QapHa’pu’, DochmeylIj lujpu’'
}
Lang.lean = {
stealFromTruck = 'rutlhDaq Doch jon',
startMission = 'lean Qu’ tagh',
notOnRun = 'lean Qu’ Daghajbe’',
alreadyChasing = 'rutlh Daq DajachtaH already'
}
Lang.lsd = {
targetHeat = 'LSD tujmoH',
heating = 'LSD tujtaH',
targetRefine = 'acid tetlh',
refining = 'acid tetlhtaH',
targetDipping = 'tabDaq tlhap',
dipping = 'tabDaq tlhaptaH',
targetPickup = 'lab jan lupung',
packup = 'lab jan nItebHa’moH',
targetClean = 'lab jan Say’moH',
needCleaning = 'Say’meH jan DaHutlh',
cleaning = 'lab jan Say’moHtaH',
targetLys = 'lysergic acid jon',
stealLys = 'lysergic acid jonlu’taH',
targetDie = 'diethylamide jon',
stealDie = 'diethylamide jonlu’taH',
targetBuyTab = 'tab nav je’',
targetBuyKit = 'LSD lab jan je’',
alreadyOwn = 'Dochvam Daghaj already',
buyingKit = 'lab jan je’taH',
tableout = 'raS SoHtaH already',
placing = 'lab jan lanlu’taH',
failed = 'bIQapbe’! bIjonHa’pu’'
}
Lang.mesc = {
targetPick = 'cactus jon',
picking = 'cactus jonlu’taH',
targetDry = 'cactus puv',
dry = 'cactus puvtaH'
}
Lang.meth = {
alreadyChasing = 'rutlh Daq DajachtaH already',
targetStealFromCar = 'meth car jon',
targetHeist = 'meth Qu’ tagh',
started = 'meth vuvtaH already',
increaseHeat = 'tuj nIbtaH',
targetBag = 'meth pochHa’',
targetCook = 'meth vuv',
targetGrabTray = 'meth tray lupung',
targetHeat = 'Dial tu’Qom',
targetSmash = 'tray Qop',
targetStealEPH = 'ephedrine jon',
stealingEPH = 'ephedrine jonlu’taH',
targetStealACE = 'acetone jon',
stealingACE = 'acetone jonlu’taH',
notOnRun = 'meth Qu’ Daghajbe’',
onCooldown = 'DaH bIQutlh',
teleIn = 'labDaq yI’el',
teleOut = 'labvo’ yImej'
}
Lang.oxy = {
ditchCar = 'rutlh QIHmoH, pa’ lan',
targetHandoff = 'paket nob',
handingoff = 'paket nobtaH',
emptyHands = 'Doch Daghajbe’',
targetPay = 'oxy rutlh rent',
keys = 'rutlh QI’meyDaq chaHtaH',
targetGetPackage = 'paket lupung',
alreadyCarrying = 'paket Daghaj already',
paid = 'DaSuqta’ $%s rutlh rentmeH',
notOn = 'rutlh Heghajbe’'
}
Lang.pharma = {
input = {
header = 'SoHvaD prescription noblu’ ’Iv?',
title1 = 'nuv pong',
title2 = 'prescription',
},
write = 'prescription ghItlh',
opening = 'bottle poSmoH',
targetFill = 'prescription teblI’',
fill = 'prescription teblI’taH',
canceled = 'prescription DaqIlHa’',
unbottle = 'bottle DaPoSmoHta’'
}
Lang.shrooms = {
targetPick = 'mushroom jon',
picking = 'mushroom jonlu’taH',
eat = 'mushroom Sop',
cancel = 'mushroom Sopbe’',
took = 'mushroom Daje’pu’'
}
Lang.weed = {
targetPick = 'weed jon',
picking = 'weed jonlu’taH',
targetDry = 'weed puv',
noDry = 'weed bIQ puv DaHutlh',
wait = 'weed puv lurgh',
take = 'weed lupunglaH',
targetDryed = 'weed lupung',
teleportIn = 'grow house yI’el',
teleportOut = 'grow house yImej',
dabs = 'dab Qap',
bluntWrap = '%s chenmoHmeH syrup Dap',
rollBlunt = '%s QorwI’ roll',
targetSales = 'dealervo’ je’',
buying = '%s dealervo’ DaSuq',
itemDoesntExist = 'Dochvam tu’lu’be’',
needItem = 'DochvamvaD %s DaHutlh',
crackBlunt = 'blunt Qop'
}
Lang.wholesale = {
alreadyWholesale = 'wholesale naQ already',
targetBuyer = 'buyer tlhoch',
wholesaling = 'wholesale Qap',
uhoh = 'buyer vItlhutlh',
tooLong = 'buyer loS nI’qu’',
notEnoughCops = 'cop puSqu’',
count = 'Dochmey mI’: %s',
bonus = 'mI’ bonus: +%s%%',
estimate = 'payout SeH: $%s - $%s',
no_drugs = 'Dochvam Daghajbe’',
ambush = 'jonlu’! %s jagh %s nuH lulo’taH',
complete = '%s Dochmey jonlu’ $%s%s',
min_quantity = 'Dochmey %s puS naQ jonlaH',
deal_failed_cleanup = 'jonHa’pu’ – wa’logh nIDlaH'
}
Lang.xtc = {
alreadyOut = 'press SoHtaH already',
settingDown = 'press lanlu’taH',
noPressOut = 'press Daghajbe’',
targetMake = 'pill QorwI’',
making = '%s QorwI’taH',
targetPickup = 'press lupung',
picking = 'press lupungtaH',
targetStealMDP2P = 'MDP2P jon',
stealingMDP2P = 'MDP2P jonlu’taH',
fail = 'QapHa’pu’! bIjatlhHa’',
targetStealIsosafrole = 'isosafrole jon',
stealingIsosafrole = 'isosafrole jonlu’taH',
targetRaw = 'XTC raw chenmoH',
makingRaw = 'XTC raw chenmoHtaH',
getPress = 'press Suq',
buySingle = 'wa’ press je’ $%s',
buyp = 'press je’taH',
targetStamp = 'XTC maq',
stamp_desc = '%s pill maq',
stamping = '%s pill maqtaH',
noPills = 'pill unstamped Daghajbe’'
}
Lang.merchant = {
targetOpen = 'merchant mIch poSmoH',
}
return Lang
+262
View File
@@ -0,0 +1,262 @@
Lang = {}
Lang.Catches = {
notIn = 'Oi, you ain’t in the damn right spot',
needItems = 'You don’t even have the shit you need',
notEnoughMoney = 'You’re too broke, loser',
buySuccess = 'Finally bought %s %s for $%s, smartass',
itemMissings = 'You need this crap: \n',
itemNeeded = 'Get your hands on %s, idiot',
cooldown = 'Slow your ass down, speed freak',
invalidItem = 'This crap ain’t sold here, dumbfuck',
onCooldownWarn = '%s tried to run %s while on cooldown, lol'
}
Lang.coke = {
targetPick = 'Grab that coke leaf, lazy ass',
picking = 'Picking the damn leaf',
targetMakePow = 'Whip up some cocaine powder',
noleaf = 'No leaf? Can’t make shit, genius',
makePow = 'Chop those leaves into powder, dumbass',
targetCutCoke = 'Cut the damn cocaine',
targetBagCoke = 'Bag that shit up',
teleIn = 'Step into the lab, dipshit',
teleOut = 'Get out of the lab, moron',
needBakingSoda = 'You need baking soda for this, noob',
}
Lang.Cornerselling = {
inVeh = 'Get out, stranger danger!',
selling = 'Selling %s for $%s, cha-ching',
deny = 'Hell no, fuck that offer',
wait = 'Stand around waiting for a sucker',
nodrugs = 'You got no drugs to sell, dumbfuck',
searching = 'Scoping for nearby marks',
targetTakeBack = 'Take back that crap',
targetSell = 'Sell %s of %s for $%s, duh',
targetDeny = 'Reject the pathetic offer',
stopped = 'Lazy piece of shit can’t sell for shit!',
start = 'Go make your mom proud, loser',
gotRobbed = 'You got jacked, nerd!',
gotBack = 'You got your shit back, finally',
notEnough = 'You don’t have enough of this crap',
comDes = 'Sell stuff on the corner, dumbass'
}
Lang.crack = {
targetMake = 'Cook some crack, shithead',
cook = 'Cooking that crack, duh',
targetBag = 'Bag up that crap',
bag = 'Bagging the crack, moron',
}
Lang.Deliveries = {
targetGetDel = 'Grab a delivery, lazy bastard',
targetOpenShop = 'Open dealer shop, finally',
shopHeader = 'Dealer shop, not your playground',
targetHandOff = 'Hand over the package, asshole',
delivering = 'Handing package to dealer, hurry up',
alreadyDelivering = 'You’re already doing a delivery, dipshit',
slowAf = 'You took too damn long!',
newDealerHelp = {
help = 'Place a dealer, lazy fuck',
name = 'Dealer name, dumbass',
timeMin = 'Min time, asshole',
timeMax = 'Max time, moron'
},
DealerExists = 'Dealer already exists, genius',
deleteDealer = {
help = 'Delete a dealer, loser',
name = 'Dealer name, duh',
},
deleteDealerSuccess = 'Dealer deleted, finally',
deleteDealerFail = 'Failed to delete dealer, lol',
}
Lang.heroin = {
targetPick = 'Pick heroin, idiot',
picking = 'Picking heroin, duh',
targetCook = 'Cook heroin, shithead',
pbCook = 'Cooking up heroin, finally',
targetPickup = 'Pick up lab, dipshit',
pbPickup = 'Picking up lab, moron',
targetClean = 'Clean the lab, lazy ass',
pbClean = 'Cleaning lab, you useless fuck',
targetDry = 'Dry out the plant, dumbass',
pbDry = 'Drying out the damn plant',
targetCutHeroin = 'Cut the heroin, fucker',
pbCutHeroin = 'Cutting the heroin, finally',
targetBuyKit = 'Buy heroin lab kit, moron',
pbBuyKit = 'Buying that kit, dumbass',
tableout = 'You already have a table out, loser',
placing = 'Placing the damn table down',
targetFill = 'Fill the syringe, idiot',
pbFill = 'Filling that syringe, moron',
hasKitAlready = 'You already have a heroin lab kit, fucker',
notEnoughMoney = 'You need $%s cash for this, brokeass',
placedKit = 'Placed your heroin kit, finally',
failed = 'Failed to make heroin, you fuckup',
}
Lang.lean = {
stealFromTruck = 'Steal from truck, dumbfuck',
startMission = 'Start lean mission, asshole',
notOnRun = 'You aren’t on a lean run, moron',
alreadyChasing = 'Already chasing a truck, lazy ass',
}
Lang.lsd = {
targetHeat = 'Heating LSD, dipshit',
heating = 'Heating up LSD, moron',
targetRefine = 'Refine the acid, shithead',
refining = 'Refining acid, lazy bastard',
targetDipping = 'Dip tabs, idiot',
dipping = 'Dipping tabs, dumbass',
targetPickup = 'Pick up lab kit, loser',
packup = 'Packing up lab kit, finally',
targetClean = 'Clean lab kit, moron',
needCleaning = 'You need cleaning kit, dumbfuck',
cleaning = 'Cleaning lab kit, dipshit',
targetLys = 'Steal lysergic acid, asshole',
stealLys = 'Stealing lysergic acid, moron',
targetDie = 'Steal diethylamide, fucker',
stealDie = 'Stealing diethylamide, idiot',
targetBuyTab = 'Buy tab paper, lazy ass',
targetBuyKit = 'Buy LSD lab kit, dumbfuck',
alreadyOwn = 'You already own this crap, loser',
buyingKit = 'Buying LSD lab kit, finally',
tableout = 'You already have a table out, shithead',
placing = 'Placing lab kit down, idiot',
failed = 'You suck at making drugs, moron',
}
Lang.mesc = {
targetPick = 'Pick cactus, dumbass',
picking = 'Picking cactus, idiot',
targetDry = 'Dry cactus, lazy fuck',
dry = 'Drying cactus, shithead',
}
Lang.meth = {
alreadyChasing = 'Already chasing a truck, asshole',
targetStealFromCar = 'Steal from meth car, moron',
targetHeist = 'Start meth mission, dipshit',
started = 'Already have meth cooking, dumbfuck',
increaseHeat = 'You increased the heat, shithead',
targetBag = 'Bag meth, lazy ass',
targetCook = 'Cook meth, idiot',
targetGrabTray = 'Grab meth tray, loser',
targetHeat = 'Adjust the dials, fucker',
targetSmash = 'Smash the tray, moron',
targetStealEPH = 'Steal ephedrine, dumbass',
stealingEPH = 'Stealing ephedrine, idiot',
targetStealACE = 'Steal acetone, shithead',
stealingACE = 'Stealing acetone, dipshit',
notOnRun = 'Not on a meth run, moron',
onCooldown = 'You’re on cooldown, loser',
teleIn = 'Enter the lab, dumbfuck',
teleOut = 'Exit the lab, idiot',
}
Lang.oxy = {
ditchCar = 'Van is hot, leave it somewhere, fucker',
targetHandoff = 'Hand off the package, dipshit',
handingoff = 'Handing off package, moron',
emptyHands = 'You’re not carrying shit, idiot',
targetPay = 'Rent oxy van, lazy ass',
keys = 'Keys are in the van, dumbfuck',
targetGetPackage = 'Grab the package, shithead',
alreadyCarrying = 'Already carrying a package, loser',
paid = 'Paid $%s to rent van, finally',
notOn = 'Not on a route, moron',
}
Lang.pharma = {
input = {
header = 'Who the fuck gets this prescription?',
title1 = 'Player name, asshole',
title2 = 'Prescription, dumbfuck',
},
write = 'Writing prescription, shithead',
opening = 'Opening prescription bottle, moron',
targetFill = 'Fill prescription, idiot',
fill = 'Getting prescription filled, dipshit',
canceled = 'You canceled the prescription, loser',
unbottle = 'Opened the bottle, fucker',
}
Lang.shrooms = {
targetPick = 'Pick shrooms, dumbass',
picking = 'Picking shrooms, idiot',
eat = 'Eating shrooms, shithead',
cancel = 'Decided not to do shrooms, loser',
took = 'Took some shrooms, fucker!',
}
Lang.weed = {
targetPick = 'Pick weed, dumbfuck',
picking = 'Picking weed, idiot',
targetDry = 'Dry weed, shithead',
noDry = 'Need wet weed for this, loser',
wait = 'Waiting for weed to dry, dipshit...',
take = 'Ready to take weed, moron',
targetDryed = 'Pick up weed, fucker',
teleportIn = 'Enter grow house, asshole',
teleportOut = 'Leave grow house, idiot',
dabs = 'Doing some dabs, dumbfuck',
bluntWrap = 'Dipping syrup to make %s, loser',
rollBlunt = 'Rolling a %s, shithead',
targetSales = 'Buy from dealer, dipshit',
buying = 'Buying %s from dealer, moron',
itemDoesntExist = 'Item does not exist here, dumbass',
needItem = 'Need a %s for this, fucker',
crackBlunt = 'Cracking open a blunt, loser',
}
Lang.wholesale = {
alreadyWholesale = 'Already wholesaling, asshole',
targetBuyer = 'Talk to the buyer, shithead',
wholesaling = 'Wholesaling drugs, moron',
uhoh = 'Buyer’s getting sketchy, dipshit',
tooLong = 'Buyer waited too long, dumbfuck',
notEnoughCops = 'Not enough cops on duty, loser',
count = 'Quantity detected: %s, fucker',
bonus = 'Quantity bonus: +%s%%, shithead',
estimate = 'Estimated payout: $%s - $%s, moron',
no_drugs = 'You don’t have any of this drug, dumbass',
ambush = 'Ambush! %s attackers with %s weapons approaching, fucker!',
complete = 'Sold %s items for $%s%s, idiot',
min_quantity = 'Must sell at least %s items, loser',
deal_failed_cleanup = 'Deal failed, try again, dumbfuck',
}
Lang.xtc = {
alreadyOut = 'You have a press out already, shithead',
settingDown = 'Setting down the press, moron',
noPressOut = 'No press out, dumbass',
targetMake = 'Press pills, loser',
making = 'Pressing a %s, fucker',
targetPickup = 'Pick up press, idiot',
picking = 'Picking up press, dipshit',
targetStealMDP2P = 'Steal MDP2P, asshole',
stealingMDP2P = 'Stealing MDP2P, moron',
fail = 'Damn dude, you suck, shithead',
targetStealIsosafrole = 'Steal isosafrole, dumbfuck',
stealingIsosafrole = 'Stealing isosafrole, loser',
targetRaw = 'Make raw XTC, fucker',
makingRaw = 'Making raw XTC, idiot',
getPress = 'Get press, moron',
buySingle = 'Buy single press for $%s, shithead',
buyp = 'Buying press, dumbass',
targetStamp = 'Stamp XTC, loser',
stamp_desc = 'Stamp %s pills, fucker',
stamping = 'Stamping %s pills, idiot',
noPills = 'No unstamped pills, shithead',
}
Lang.merchant = {
targetOpen = 'Open merchant menu, asshole',
}
return Lang
+262
View File
@@ -0,0 +1,262 @@
Lang = {}
Lang.Catches = {
notIn = 'ouYay Areyay otnay Inyay Ethay Orrectcay Ocationlay',
needItems = 'ouYay Oday Otnay Avehay Ethay Equiredray Itemsyay',
notEnoughMoney = 'ouYay Ereyay Otay Okebray',
buySuccess = 'ouYay Oughtbay %s %s Orfay $%s',
itemMissings = 'ouYay Eednay \n',
itemNeeded = 'ouYay Eednay %s',
cooldown = 'owSlay OwnDay Eedspay AcerRay',
invalidItem = 'isThay Itemyay Isyay Otnay Oldsay EreHay',
onCooldownWarn = '%s Attemptedyay Otay Unray Eventyay %s \n ilewhay onyay ooldowncay'
}
Lang.coke = {
targetPick = 'ickPay Ocacay Eaflay',
picking = 'ickingPay Ocacay Eaflay',
targetMakePow = 'akeMay Ocacaineyay Owderpay',
noleaf = 'ouYay Eednay Ayay Okecay Eaflay',
makePow = 'oppingChay Eaveslay intoyay Owderpay',
targetCutCoke = 'utCay Ocacaineyay',
targetBagCoke = 'agBay Ocacaineyay',
teleIn = 'Enteryay ethay Ablay',
teleOut = 'Exityay ethay Ablay',
needBakingSoda = 'ouYay Eednay Akingbay Odasay Orfay isThay',
}
Lang.Cornerselling = {
inVeh = 'angerStray angerDay!',
selling = 'ellingSay %s orfay $%s',
deny = 'uckFay AtThay Offeray',
wait = 'aitingWay Orfay Ustomercay',
nodrugs = 'ouYay Oday Otnay Avehay Anyyay Ugsdray Otay EllSay',
searching = 'earchingSay Orfay Earbynay Ustomerscay',
targetTakeBack = 'akeTay AckBay Ugsdray',
targetSell = 'ellSay %s Ofyay %s Orfay $%s',
targetDeny = 'enyDay Offeray',
stopped = 'ourYay Azylay Assyay AntCay Evenyay EllSay Ugsdray!',
start = 'oGay AkeMay ourYay OmMay OudPray',
gotRobbed = 'ouYay OtGay ObbedRay ErdNay!',
gotBack = 'ouYay OtGay ourYay UffStay AckBay!',
notEnough = 'ouYay OntDay Avehay Enoughyay Ofyay isThay Itemyay',
comDes = 'ellSay ingsThay Onyay Ethay OrnerCay'
}
Lang.crack = {
targetMake = 'ookCay OmeSay AckCray',
cook = 'ookingCay AckCray',
targetBag = 'agBay AckCray',
bag = 'aggingBay AckCray',
}
Lang.Deliveries = {
targetGetDel = 'etGay EliveryDay IssionMay',
targetOpenShop = 'Openyay EalerDay OpShay',
shopHeader = 'EalerDay OpShay',
targetHandOff = 'andHay Offyay EliveryDay',
delivering = 'andingHay Ethay AckagePay Otay Ugdray EalerDay',
alreadyDelivering = 'ouYay Areyay Alreadyyay EliveringDay Ayay AckagePay',
slowAf = 'ouYay OokTay Otay OngLay!',
newDealerHelp = {
help = 'acePlay Ayay EalerDay',
name = 'EalerDay Amenay',
timeMin = 'inimumMay ImeTay',
timeMax = 'aximumMay ImeTay'
},
DealerExists = 'EalerDay Alreadyyay Existsyay',
deleteDealer = {
help = 'eleteDay Ayay EalerDay',
name = 'EalerDay Amenay',
},
deleteDealerSuccess = 'eletedDay EalerDay',
deleteDealerFail = 'ailedFay Otay eleteDay EalerDay',
}
Lang.heroin = {
targetPick = 'ickPay EroinHay',
picking = 'ickingPay EroinHay',
targetCook = 'ookCay EroinHay',
pbCook = 'ookingCay Upyay EroinHay',
targetPickup = 'ickPay Upyay Ablay',
pbPickup = 'ickingPay Upyay Ablay',
targetClean = 'eanClay Ablay',
pbClean = 'eaningClay Ablay',
targetDry = 'yDray Outyay AntPlay',
pbDry = 'ryingDay Outyay AntPlay',
targetCutHeroin = 'utCay EroinHay',
pbCutHeroin = 'uttingCay EroinHay',
targetBuyKit = 'uyBay EroinHay Ablay ItKay',
pbBuyKit = 'uyingBay EroinHay Ablay ItKay',
tableout = 'ouYay Alreadyyay Avehay Ayay AbleTay Outyay',
placing = 'acingPlay OwnDay AbleTay',
targetFill = 'illFay Yringesay',
pbFill = 'illingFay Yringesay',
hasKitAlready = 'ouYay Alreadyyay Avehay Ayay EroinHay Ablay ItKay',
notEnoughMoney = 'ouYay Eednay $%s Inyay AshCay Orfay isThay',
placedKit = 'ouYay AcedPlay OwnDay ourYay EroinHay Ablay ItKay',
failed = 'ouYay ailedFay Otay AkeMay EroinHay Andyay OstLay ourYay Ingredientsyay',
}
Lang.lean = {
stealFromTruck = 'ealStay Omfray UckTray',
startMission = 'artStay EanLay IssionMay',
notOnRun = 'ouYay Areyay Otnay Onyay Ayay EanLay UnRay',
alreadyChasing = 'ouYay Areyay Alreadyyay AsingChay Ayay UckTray',
}
Lang.lsd = {
targetHeat = 'eatingHay LSD',
heating = 'eatingHay Upyay LSD',
targetRefine = 'efineRay Ethay Acidyay',
refining = 'efiningRay Ethay Acidyay',
targetDipping = 'ipDay AbsTay',
dipping = 'ippingDay AbsTay',
targetPickup = 'ickPay Upyay Ablay ItKay',
packup = 'ackingPay Upyay Ablay ItKay',
targetClean = 'eanClay Ablay ItKay',
needCleaning = 'ouYay Eednay Ayay EaningClay ItKay Otay EanClay Ethay Ablay',
cleaning = 'eaningClay Ablay ItKay',
targetLys = 'ealStay YsergicLay Acidyay',
stealLys = 'ealingStay YsergicLay Acidyay',
targetDie = 'ealStay iethylamideDay',
stealDie = 'ealingStay iethylamideDay',
targetBuyTab = 'uyBay AbTay AperPay',
targetBuyKit = 'uyBay LSD Ablay ItKay',
alreadyOwn = 'ouYay Alreadyyay Ownyay isThay Itemyay',
buyingKit = 'uyingBay LSD Ablay ItKay',
tableout = 'ouYay Alreadyyay Avehay Ayay AbleTay Outyay',
placing = 'acingPlay Ablay ItKay OwnDay!',
failed = 'ouYay UcksSay Atyay AkingMay UgsDray',
}
Lang.mesc = {
targetPick = 'ickPay ActusCay',
picking = 'ickingPay ActusCay',
targetDry = 'yDray ActusCay',
dry = 'ryingDay ActusCay',
}
Lang.meth = {
alreadyChasing = 'ouYay Alreadyyay Areyay AsingChay Ayay UckTray',
targetStealFromCar = 'ealStay Omfray EthMay ArCay',
targetHeist = 'artStay EthMay IssionMay',
started = 'ouYay Alreadyyay Avehay EthMay OokingCay',
increaseHeat = 'ouYay Increasedyay Ethay EatHay',
targetBag = 'agBay EthMay',
targetCook = 'ookCay EthMay',
targetGrabTray = 'abGray EthMay AyTray',
targetHeat = 'adjustyay Ethay IalsDay',
targetSmash = 'ashSmay Ethay AyTray',
targetStealEPH = 'ealStay Ephedrineyay',
stealingEPH = 'ealingStay Ephedrineyay',
targetStealACE = 'ealStay Acetoneyay',
stealingACE = 'ealingStay Acetoneyay',
notOnRun = 'ouYay Areyay Otnay Onyay Ayay EthMay UnRay',
onCooldown = 'ouYay Areyay Onyay Ayay OoldownCay',
teleIn = 'Enteryay Ethay Ablay',
teleOut = 'Exityay Ethay Ablay',
}
Lang.oxy = {
ditchCar = 'Ethay AnVay Isyay OtHay, Eavelay Ityay Omewheresay',
targetHandoff = 'andHay Offyay Ethay AckagePay',
handingoff = 'andingHay Offyay Ethay AckagePay',
emptyHands = 'ouYay Areyay Otnay ArryingCay Anythingyay',
targetPay = 'entRay Oxyyay AnVay',
keys = 'Ethay Eyskay Areyay Inyay Ethay AnVay',
targetGetPackage = 'abGray AckagePay',
alreadyCarrying = 'ouYay Areyay Alreadyyay ArryingCay Ayay AckagePay',
paid = 'ouYay AidPay $%s Otay EntRay Ethay AnVay',
notOn = 'ouYay Areyay Otnay Onyay Ayay OuteRay',
}
Lang.pharma = {
input = {
header = 'oWhay Otay IveGay Ayay EscriptionPray Otyay?',
title1 = 'ayerPlay Amenay',
title2 = 'escriptionPray',
},
write = 'itingWray EscriptionPray',
opening = 'openingyay EscriptionPray OttleBay',
targetFill = 'illFay EscriptionPray',
fill = 'ettingGay EscriptionPray IlledFay',
canceled = 'ouYay AnceledCay Ethay EscriptionPray',
unbottle = 'ouYay Openedyay Ethay OttleBay',
}
Lang.shrooms = {
targetPick = 'ickPay RoomsShay',
picking = 'ickingPay RoomsShay',
eat = 'eatingyay RoomsShay',
cancel = 'ecidedDay Otay Otnay Oday RoomsShay',
took = 'ouYay OokTay Omesay RoomsShay!',
}
Lang.weed = {
targetPick = 'ickPay EedWay',
picking = 'ickingPay EedWay',
targetDry = 'yDray EedWay',
noDry = 'ouYay Eednay EtWay EedWay Orfay isThay',
wait = 'aitingWay Orfay EedWay Otay yDray...',
take = 'eadyRay Otay AkeTay EedWay',
targetDryed = 'ickupPay EedWay',
teleportIn = 'Enteryay Ethay OwGray OuseHay',
teleportOut = 'eaveLay Ethay OwGray OuseHay',
dabs = 'oingDay Omesay AbsDay',
bluntWrap = 'ippingDay YrupSay Otay AkeMay %s',
rollBlunt = 'ollingRay Ayay %s',
targetSales = 'uyBay Omfray EalerDay',
buying = 'uyingBay %s Omfray EalerDay',
itemDoesntExist = 'isThay Itemyay OesDay Otnay Existyay EreHay',
needItem = 'ouYay Eednay Ayay %s Orfay isThay',
crackBlunt = 'ackingCray Openyay Ayay UntBlay'
}
Lang.wholesale = {
alreadyWholesale = 'Alreadyyay OlesalingWhay',
targetBuyer = 'alkTay Otay Ethay UyerBay',
wholesaling = 'olesalingWhay UgsDray',
uhoh = 'Ethay UyerBay Isyay EttingGay EtchySkay',
tooLong = 'Ethay UyerBay AitedWay Otay OngLay',
notEnoughCops = 'Otnay Enoughyay OpsCay Onyay UtyDay',
count = 'antityQuay EtectedDay: %s',
bonus = 'antityQuay OnusBay: +%s%%',
estimate = 'Estimatedyay AyoutPay: $%s - $%s',
no_drugs = 'ouYay Oday Otnay Avehay Anyyay Ofyay isthay UgDray Otay EllSay',
ambush = 'Ambushyay! %s attackersyay ithway %s eaponsway areyay approachingyay!',
complete = 'oldSay %s itemsyay orfay $%s%s',
min_quantity = 'ouYay Ustmay EllSay Atlay Eastyay %s itemsyay Otay OlesaleWhay',
deal_failed_cleanup = 'EalDay ailedFay - ouyay ancay ytray againyay'
}
Lang.xtc = {
alreadyOut = 'ouYay Avehay Ayay EssPray Outyay Alreadyyay',
settingDown = 'ettingSay OwnDay Ethay EssPray',
noPressOut = 'ouYay Oday Otnay Avehay Ayay EssPray Outyay',
targetMake = 'essPray IllsPay',
making = 'essingPray Ayay %s',
targetPickup = 'ickPay Upyay EssPray',
picking = 'ickingPay Upyay EssPray',
targetStealMDP2P = 'ealStay MDP2Pyay',
stealingMDP2P = 'ealingStay MDP2Pyay',
fail = 'amnDay UdeDay ouYay UcksSay',
targetStealIsosafrole = 'ealStay Isosafroleyay',
stealingIsosafrole = 'ealingStay Isosafroleyay',
targetRaw = 'akeMay AwRay XTCyay',
makingRaw = 'akingMay AwRay XTCyay',
getPress = 'etGay EssPray',
buySingle = 'uyBay IngleSay EssPray Orfay $%s',
buyp = 'uyingBay EssPray',
targetStamp = 'ampStay XTCyay',
stamp_desc = 'ampStay %s IllsPay',
stamping = 'ampingStay %s IllsPay',
noPills = 'ouYay OntDay Avehay Anyyay Unstampedyay IllsPay'
}
Lang.merchant = {
targetOpen = 'Openyay ErchantMay EnuMay',
}
return Lang
+262
View File
@@ -0,0 +1,262 @@
Lang = {}
Lang.Catches = {
notIn = 'Ye be not in the right port, matey!',
needItems = 'Ye be lackin’ the proper booty',
notEnoughMoney = 'Ye pockets be emptier than Davey Jones’ locker',
buySuccess = 'Ye plundered %s %s fer $%s',
itemMissings = 'Ye be needin’ \n',
itemNeeded = 'Ye be needin’ %s',
cooldown = 'Avast! Slow yer sails, sailor!',
invalidItem = 'This booty ain’t sold on these seas',
onCooldownWarn = '%s tried to run the voyage %s \n while the crew be restin’'
}
Lang.coke = {
targetPick = 'Pluck the coca leaf',
picking = 'Plunderin’ coca leaves',
targetMakePow = 'Grind the white powder',
noleaf = 'Ye need a coca leaf, swabbie!',
makePow = 'Choppin’ leaves inta powder',
targetCutCoke = 'Carve up the cocaine',
targetBagCoke = 'Stash cocaine in sacks',
teleIn = 'Sneak inta the secret hold',
teleOut = 'Slip outta the secret hold',
needBakingSoda = 'Ye be needin’ bakin’ soda fer this, yarrr'
}
Lang.Cornerselling = {
inVeh = 'Stranger danger, ye scallywag!',
selling = 'Hawk’n %s fer $%s',
deny = 'Blimey, shove that deal!',
wait = 'Waitin’ fer a matey with coin',
nodrugs = 'Ye hold no contraband, landlubber',
searching = 'Scoutin’ fer passin’ sailors',
targetTakeBack = 'Snatch back the goods',
targetSell = 'Trade %s o’ %s fer $%s',
targetDeny = 'Turn down the offer',
stopped = 'Ye lazy bilge rat, can’t even peddle the wares!',
start = 'Go make yer mum proud, lad',
gotRobbed = 'Ye been plundered, ye sorry dog!',
gotBack = 'Ye reclaimed yer booty!',
notEnough = 'Ye don’t hold enough o’ this booty',
comDes = 'Sellin’ goods on the street corner, yarrr'
}
Lang.crack = {
targetMake = 'Cook some crack in the galley',
cook = 'Brewin’ crack on the stove',
targetBag = 'Stash the crack',
bag = 'Stashin’ the crack, yarrr',
}
Lang.Deliveries = {
targetGetDel = 'Snag a smuggler’s run',
targetOpenShop = 'Open the dealer’s chest',
shopHeader = 'Dealer’s Market',
targetHandOff = 'Hand off the cargo',
delivering = 'Passin’ the package to a shady sailor',
alreadyDelivering = 'Ye already got a run, bucko',
slowAf = 'Too slow, ye barnacle brain!',
newDealerHelp = {
help = 'Drop anchor a dealer',
name = 'Dealer’s Name',
timeMin = 'Shortest tide',
timeMax = 'Longest tide'
},
DealerExists = 'That dealer’s already sailin’',
deleteDealer = {
help = 'Scuttle a dealer',
name = 'Dealer’s Name',
},
deleteDealerSuccess = 'Dealer scuttled to the depths',
deleteDealerFail = 'The dealer lives yet, yarrr',
}
Lang.heroin = {
targetPick = 'Pick the poppy treasure',
picking = 'Harvestin’ heroin booty',
targetCook = 'Brew the heroin stew',
pbCook = 'Cookin’ up heroin grog',
targetPickup = 'Snatch the lab chest',
pbPickup = 'Packin’ up the lab',
targetClean = 'Swab the lab deck',
pbClean = 'Swabbin’ down the lab',
targetDry = 'Dry out the devil’s weed',
pbDry = 'Hangin’ plants to dry',
targetCutHeroin = 'Slice the heroin',
pbCutHeroin = 'Cuttin’ heroin',
targetBuyKit = 'Buy a heroin galley kit',
pbBuyKit = 'Buyin’ the galley kit',
tableout = 'Ye already got a table out, matey',
placing = 'Droppin’ the galley table',
targetFill = 'Fill a syringe',
pbFill = 'Filling the syringe',
hasKitAlready = 'Ye already got a heroin galley kit',
notEnoughMoney = 'Ye need $%s in coin fer this',
placedKit = 'Ye set yer galley kit down',
failed = 'Ye bungled the brew an’ lost yer stash',
}
Lang.lean = {
stealFromTruck = 'Plunder the cargo wagon',
startMission = 'Set sail on a lean run',
notOnRun = 'Ye be not on a lean voyage',
alreadyChasing = 'Ye be already tailin’ a wagon',
}
Lang.lsd = {
targetHeat = 'Heat the acid grog',
heating = 'Stokin’ the acid fire',
targetRefine = 'Refine the devil’s brew',
refining = 'Refinin’ the acid',
targetDipping = 'Dip the cursed tabs',
dipping = 'Dippin’ tabs',
targetPickup = 'Snatch the lab kit',
packup = 'Stashin’ the lab kit',
targetClean = 'Scrub the lab kit',
needCleaning = 'Ye need a scrub kit to swab this lab',
cleaning = 'Swabbin’ the lab kit',
targetLys = 'Steal lysergic acid booty',
stealLys = 'Snatchin’ lysergic acid',
targetDie = 'Steal diethylamide loot',
stealDie = 'Snatchin’ diethylamide',
targetBuyTab = 'Buy tab parchment',
targetBuyKit = 'Buy LSD lab kit',
alreadyOwn = 'Ye already hold this booty',
buyingKit = 'Buyin’ LSD galley kit',
tableout = 'Ye already got a table out',
placing = 'Plantin’ the lab kit',
failed = 'Ye botched the brew, yarrr',
}
Lang.mesc = {
targetPick = 'Harvest the cactus booty',
picking = 'Pluckin’ cactus',
targetDry = 'Dry the cactus flesh',
dry = 'Dryin’ cactus',
}
Lang.meth = {
alreadyChasing = 'Ye already be chasin’ a wagon',
targetStealFromCar = 'Plunder the meth cart',
targetHeist = 'Set sail on a meth run',
started = 'Ye already be brewin’ meth, matey',
increaseHeat = 'Ye stoked the fire hotter',
targetBag = 'Bag the meth booty',
targetCook = 'Cook the meth stew',
targetGrabTray = 'Snatch the meth tray',
targetHeat = 'Twist the dials',
targetSmash = 'Smash the tray',
targetStealEPH = 'Steal ephedrine booty',
stealingEPH = 'Snatchin’ ephedrine',
targetStealACE = 'Steal acetone booty',
stealingACE = 'Snatchin’ acetone',
notOnRun = 'Ye be not on a meth run',
onCooldown = 'Ye be coolin’ yer heels, yarrr',
teleIn = 'Sneak into the meth galley',
teleOut = 'Slip outta the meth galley',
}
Lang.oxy = {
ditchCar = 'The wagon be too hot, stash it away',
targetHandoff = 'Hand off the cursed cargo',
handingoff = 'Passin’ the package',
emptyHands = 'Ye be carryin’ nothin’, bilge rat',
targetPay = 'Rent an oxy wagon',
keys = 'The keys be in the wagon, matey',
targetGetPackage = 'Snatch a parcel',
alreadyCarrying = 'Ye already be carryin’ a parcel',
paid = 'Ye paid $%s to rent the wagon',
notOn = 'Ye be not on a smuggler’s route',
}
Lang.pharma = {
input = {
header = 'Who gets this magic scroll?',
title1 = 'Sailor’s Name',
title2 = 'Prescription',
},
write = 'Scrawlin’ a prescription',
opening = 'Poppin’ open the medicine chest',
targetFill = 'Fill the prescription',
fill = 'Fetchin’ the potion',
canceled = 'Ye canceled the scroll',
unbottle = 'Ye popped open the potion flask',
}
Lang.shrooms = {
targetPick = 'Harvest the magic shrooms',
picking = 'Pluckin’ shrooms',
eat = 'Munchin’ shrooms, yarrr',
cancel = 'Changed yer mind on the shrooms',
took = 'Ye ate the shrooms, matey!',
}
Lang.weed = {
targetPick = 'Harvest the devil’s lettuce',
picking = 'Pluckin’ weed',
targetDry = 'Dry the weed booty',
noDry = 'Ye need wet weed fer this, swabbie',
wait = 'Waitin’ fer the weed to dry...',
take = 'Time to snatch the weed',
targetDryed = 'Pick up the weed stash',
teleportIn = 'Sneak into the grow cabin',
teleportOut = 'Slip outta the grow cabin',
dabs = 'Dabbin’ the wax, yarrr',
bluntWrap = 'Dippin’ syrup to make %s',
rollBlunt = 'Rollin’ a %s',
targetSales = 'Buy off a shady dealer',
buying = 'Buyin’ %s from a dealer',
itemDoesntExist = 'This booty be not here',
needItem = 'Ye need a %s fer this',
crackBlunt = 'Crackin’ open a blunt',
}
Lang.wholesale = {
alreadyWholesale = 'Ye already be tradin’ in bulk',
targetBuyer = 'Speak to the buyer',
wholesaling = 'Sellin’ contraband by the chest',
uhoh = 'The buyer looks shifty, yarrr',
tooLong = 'The buyer grew weary o’ waitin’',
notEnoughCops = 'Not enough watchmen on duty',
count = 'Booty counted: %s',
bonus = 'Bonus fer quantity: +%s%%',
estimate = 'Ye may get $%s - $%s',
no_drugs = 'Ye hold none o’ this contraband',
ambush = 'An ambush! %s rogues with %s weapons approach!',
complete = 'Sold %s booty fer $%s%s',
min_quantity = 'Ye must sell at least %s to wholesale',
deal_failed_cleanup = 'The trade sank – try again later',
}
Lang.xtc = {
alreadyOut = 'Ye already got a press out, matey',
settingDown = 'Droppin’ the press',
noPressOut = 'Ye got no press, bilge rat',
targetMake = 'Press the pills',
making = 'Pressin’ a %s',
targetPickup = 'Snatch up the press',
picking = 'Grabbin’ the press',
targetStealMDP2P = 'Snatch the MDP2P booty',
stealingMDP2P = 'Stealin’ MDP2P',
fail = 'By thunder, ye be useless!',
targetStealIsosafrole = 'Snatch isosafrole booty',
stealingIsosafrole = 'Stealin’ isosafrole',
targetRaw = 'Cook raw XTC grog',
makingRaw = 'Brewin’ raw XTC',
getPress = 'Fetch a press',
buySingle = 'Buy a single press fer $%s',
buyp = 'Buyin’ the press',
targetStamp = 'Stamp the XTC',
stamp_desc = 'Stamp %s pills',
stamping = 'Stampin’ %s pills',
noPills = 'Ye got no naked pills to stamp',
}
Lang.merchant = {
targetOpen = 'Open the trader’s menu',
}
return Lang
+16 -7
View File
@@ -19,6 +19,13 @@ thirst = number -- same shit
strength = number -- how long you are strong boi
]]
local Consumables = {}
Consumables.defaulttime = 4000
Consumables.defaultanim = 'pflag2'
Consumables.defaultprogresstext = 'Consuming ' -- it will always show the label of the item being used after what you put here, make sure to keep the space at the end :)
Consumables.defaultstatval = 0
local Consume = {
-- meth
methbags = { time = 4000, effect = 'meth', anim = "smoke", progressbartext = "Injesting",
@@ -158,23 +165,25 @@ for k, v in pairs(Consume) do
end
RegisterNetEvent('md-drugs:server:updatestatus', function(stat, statval)
local Player = ps.getPlayer(source)
local src = source
local Player = ps.getPlayer(src)
if GetResourceState('es_extended') == 'started' then return end
local hunger, thirst = Player.PlayerData.metadata.hunger, Player.PlayerData.metadata.thirst
if stat == "thirst" then
local value = thirst + statval
Player.Functions.SetMetaData('thirst', value)
TriggerClientEvent('hud:client:UpdateNeeds', source, hunger, value)
TriggerClientEvent('hud:client:UpdateNeeds', src, hunger, value)
elseif stat == "hunger" then
local value = hunger + statval
Player.Functions.SetMetaData('hunger', value)
TriggerClientEvent('hud:client:UpdateNeeds', source, value, thirst)
elseif stat == "stress" then
TriggerClientEvent('hud:client:UpdateNeeds', src, value, thirst)
elseif stat == "stress" then
local value = Player.PlayerData.metadata.stress + statval
Player.Functions.SetMetaData('stress', value)
TriggerClientEvent('hud:client:UpdateStress', source, Player.PlayerData.metadata.stress, value)
TriggerClientEvent('hud:client:UpdateStress', src, Player.PlayerData.metadata.stress, value)
elseif stat == "armor" then
local value = Player.PlayerData.metadata.armor + statval
TriggerEvent('hospital:server:SetArmor', value)
TriggerClientEvent('hud:client:UpdateStress', source, Player.PlayerData.metadata.armor, value)
TriggerEvent('hospital:server:SetArmor', value)
TriggerClientEvent('hud:client:UpdateStress', src, Player.PlayerData.metadata.armor, value)
end
end)
+13 -5
View File
@@ -107,6 +107,14 @@ local plants = {
}
}
local plantRespawnTimers = {
coke = 100,
heroin = 100,
mescaline = 100,
shrooms = 100,
weed = 100
}
local plantData = {
{
label = 'coke',
@@ -120,7 +128,7 @@ local plantData = {
end,
coolDown = function(loc)
CreateThread(function()
Wait(Config.respawnTime * 1000)
Wait(plantRespawnTimers.coke * 1000)
plants.cocaine[loc].taken = false
GlobalState.CocaPlant = plants.cocaine
TriggerClientEvent('coke:respawnCane', -1, loc)
@@ -139,7 +147,7 @@ local plantData = {
end,
coolDown = function(loc)
CreateThread(function()
Wait(Config.respawnTime * 1000)
Wait(plantRespawnTimers.heroin * 1000)
plants.heroin[loc].taken = false
GlobalState.PoppyPlants = plants.heroin
TriggerClientEvent('heroin:respawnCane', -1, loc)
@@ -158,7 +166,7 @@ local plantData = {
end,
coolDown = function(loc)
CreateThread(function()
Wait(Config.respawnTime * 1000)
Wait(plantRespawnTimers.mescaline * 1000)
plants.mescaline[loc].taken = false
GlobalState.Mescaline = plants.mescaline
TriggerClientEvent('Mescaline:respawnCane', -1, loc)
@@ -177,7 +185,7 @@ local plantData = {
end,
coolDown = function(loc)
CreateThread(function()
Wait(Config.respawnTime * 1000)
Wait(plantRespawnTimers.shrooms * 1000)
plants.shrooms[loc].taken = false
GlobalState.shrooms = plants.shrooms
TriggerClientEvent('shrooms:respawnCane', -1, loc)
@@ -196,7 +204,7 @@ local plantData = {
end,
coolDown = function(loc)
CreateThread(function()
Wait(Config.respawnTime * 1000)
Wait(plantRespawnTimers.weed * 1000)
plants.weed[loc].taken = false
GlobalState.WeedPlant = plants.weed
TriggerClientEvent('weed:respawnCane', -1, loc)
+138 -34
View File
@@ -1,4 +1,3 @@
local coke = { "cokebaggy", "cokebaggystagethree", "cokebaggystagetwo"}
local crack = {"baggedcracked", "baggedcrackedstagetwo", "baggedcrackedstagethree"}
local lsd = {'smiley_tabs', 'yinyang_tabs', 'wildcherry_tabs', 'pineapple_tabs', 'bart_tabs', 'gratefuldead_tabs'}
@@ -6,13 +5,74 @@ local heroin = {'heroin_ready', 'heroin_readystagetwo', 'heroin_readystagethree'
local xtc = {"white_playboys", "white_playboys2", "white_playboys3", "white_playboys4", "blue_playboys", "blue_playboys2", "blue_playboys3", "blue_playboys4", "red_playboys", "red_playboys2", "red_playboys3", "red_playboys4", "orange_playboys", "orange_playboy2s", "orange_playboys3", "orange_playboys4", "white_aliens", "white_aliens2", "white_aliens3", "white_aliens4", "blue_aliens", "blue_aliens2", "blue_aliens3", "blue_aliens4", "red_aliens", "red_aliens3", "red_aliens2", "red_aliens4", "orange_aliens", "orange_aliens2", "orange_aliens3", "orange_aliens4", "white_pl", "white_pl2", "white_pl3", "white_pl4", "blue_pl", "blue_pl2", "blue_pl3", "blue_pl4", "red_pl", "red_pl2", "red_pl3", "red_pl4", "orange_pl", "orange_pl2", "orange_pl3", "orange_pl4", "white_trolls", "white_trolls2", "white_trolls3", "white_trolls4", "blue_trolls", "blue_trolls2", "blue_trolls3", "blue_trolls4", "red_trolls", "red_trolls2", "red_trolls3", "red_trolls4", "orange_trolls", "orange_trolls2", "orange_trolls3", "orange_trolls4", "white_cats2", "white_cats3", "white_cats4", "white_cats", "blue_cats", "blue_cats3", "blue_cats2", "blue_cats4", "red_cats", "red_cats2", "red_cats3", "red_cats4", "orange_cats", "orange_cats2", "orange_cats3", "orange_cats4" }
local burners = {cokeburner = coke, crackburner = crack, lsdburner = lsd, heroinburner = heroin, xtcburner = xtc}
local active = {}
local settings = {}
settings.WholesaleQuantityBonus = 0.05 -- 5% bonus per 10 units sold (up to 20%)
settings.WholesaleMaxBonus = 0.20 -- Maximum 20% bonus
settings.WholesaleMinQuantity = 1 -- Minimum quantity required for wholesale
settings.WholesaleAmbushEnabled = true -- Enable or disable ambush on failed deals
settings.WholesaleAmbushBase = 2 -- Base number of attackers on failed deals
settings.WholesaleAmbushScale = true -- Scale number of attackers based on drug quantity
settings.WholesaleAmbushTier1 = 10 -- Drug quantity threshold for 3 attackers
settings.WholesaleAmbushTier2 = 20 -- Drug quantity threshold for 4 attackers
settings.WholesaleAmbushTier3 = 30 -- Drug quantity threshold for 5 attackers
settings.WholesaleWeaponTiers = true -- Scale weapon difficulty based on drug quantity
settings.WholesaleWeaponsTier1 = { -- Basic weapons (default)
"WEAPON_PISTOL",
"WEAPON_BAT",
"WEAPON_KNIFE",
"WEAPON_MACHETE"
}
settings.WholesaleWeaponsTier2 = { -- Medium weapons (10+ drugs)
"WEAPON_COMBATPISTOL",
"WEAPON_MICROSMG",
"WEAPON_SAWNOFFSHOTGUN",
"WEAPON_CROWBAR"
}
settings.WholesaleWeaponsTier3 = { -- Advanced weapons (20+ drugs)
"WEAPON_APPISTOL",
"WEAPON_SMG",
"WEAPON_PUMPSHOTGUN",
"WEAPON_CARBINERIFLE"
}
settings.WholesaleWeaponsTier4 = { -- Elite weapons (30+ drugs)
"WEAPON_HEAVYPISTOL",
"WEAPON_ASSAULTSMG",
"WEAPON_ASSAULTSHOTGUN",
"WEAPON_SPECIALCARBINE"
}
settings.WholesaleShowEstimates = true -- Show estimated value before deal
settings.WholesaleFailPoliceAlert = 75 -- Chance to alert police on failed deals (0-100)
settings.WholesaleResetOnTimeout = true -- Reset wholesale flag when buyer times out
settings.SuccessfulChance = 90 --- this is the chance of a Success wholesale 1-100
settings.AlertPoliceWholesale = 90 -- 1-100 of how often it will alert police
settings.WholesaleTimeout = 600 -- time in seconds to get to the location
settings.PoliceCount = 2
local Price = {
coke = {min = 20, max = 60},
crack = {min = 20, max = 60},
lsd = {min = 20, max = 60},
heroin = {min = 20, max = 60},
xtc = {min = 20, max = 60},
coke = {
min = math.floor(250 * 0.80), -- 250 * 0.80 = 200
max = math.floor(450 * 0.80) -- 450 * 0.80 = 360
},
crack = {
min = math.floor(200 * 0.80), -- 200 * 0.80 = 160
max = math.floor(400 * 0.80) -- 400 * 0.80 = 320
},
lsd = {
min = math.floor(200 * 0.80), -- 200 * 0.80 = 160
max = math.floor(350 * 0.80) -- 350 * 0.80 = 280
},
heroin = {
min = math.floor(200 * 0.80), -- 200 * 0.80 = 160
max = math.floor(400 * 0.80) -- 400 * 0.80 = 320
},
xtc = {
min = math.floor(350 * 0.80), -- 350 * 0.80 = 280
max = math.floor(665 * 0.80) -- 665 * 0.80 = 532
},
meth = {
min = math.floor(200 * 0.80), -- 200 * 0.80 = 160
max = math.floor(400 * 0.80) -- 400 * 0.80 = 320
}
}
local locs = {
vector4(-2352.32, 266.78, 165.3, 23.46),
@@ -28,19 +88,23 @@ local locs = {
vector4(-320.84, 2818.73, 59.45, 337.22),
vector4(474.88, 2609.56, 44.48, 357.0),
}
function getRandW(src)
ps.registerCallback('md-drugs:server:GetWSsettings', function(source)
return settings
end)
function getRandW(source)
local rand = math.random(1, #locs)
return locs[rand]
end
for k, v in pairs (burners) do
for k, v in pairs (burners) do
ps.createUseable(k, function(source, item)
local src = source
local Player = getPlayer(src)
if getCops() < Config.PoliceCount then return ps.notify(src, ps.lang('wholesale.notEnoughCops'), 'error') end
local Player = ps.getPlayer(source)
if ps.getJobTypeCount('leo') < Config.PoliceCount then return ps.notify(source, ps.lang('wholesale.notEnoughCops'), 'error') end
for m, d in pairs (active) do
if d.cid == Player.PlayerData.citizenid then
return ps.notify(src, ps.lang('wholesale.alreadyWholesale'), 'error' )
if d.cid == ps.getIdentifier(source) then
return ps.notify(source, ps.lang('wholesale.alreadyWholesale'), 'error')
end
end
local tab = ''
@@ -49,18 +113,28 @@ for k, v in pairs (burners) do
if k == 'lsdburner' then tab = 'lsd' end
if k == 'heroinburner' then tab = 'heroin' end
if k == 'xtcburner' then tab = 'xtc' end
if ps.removeItem(src, k, 1) then
if k == 'methburner' then tab = 'meth' end
if ps.removeItem(source, k, 1) then
local Player = ps.getPlayer(source)
local drugCount = 0
for m, d in pairs (v) do
local amt = ps.getItemCount(source, d) or 0
if amt > 0 then
drugCount = drugCount + amt
end
end
table.insert(active, {
src = src,
src = source,
item = k,
location = getRandW(src),
cid = ps.getIdentifier(src),
location = getRandW(source),
cid = ps.getIdentifier(source),
type = v,
price = Price[tab]
price = Price[tab],
count = drugCount
})
for m, d in pairs (active) do
if d.cid == ps.getIdentifier(src) then
TriggerClientEvent("md-drugs:client:GetLocation", src, active[m])
if d.cid == ps.getIdentifier(source) then
TriggerClientEvent("md-drugs:client:GetLocation", source, active[m])
end
end
end
@@ -68,22 +142,52 @@ for k, v in pairs (burners) do
end
RegisterNetEvent('md-drugs:server:SuccessSale', function(data)
local src = source
for k, v in pairs (active) do
if v.cid == ps.getIdentifier(src) then
if not ps.checkDistance(src, v.location, 4.0) then
return ps.notify(src, ps.lang('Catches.notIn'), "error")
end
local payout = math.random(v.price.min, v.price.max)
for m, d in pairs (v.type) do
local git = ps.getItemCount(src, d)
if git >= 1 then
if ps.removeItem(src, d, git) then
ps.addMoney('cash', git * payout)
end
local Player = ps.getPlayer(source)
for k, v in pairs (active) do
if v.cid == ps.getIdentifier(source) then
local totalQuantity = 0
local itemCounts = {}
for m, d in pairs (v.type) do
local count = ps.getItemCount(source, d) or 0
if count >= 1 then
totalQuantity = totalQuantity + count
itemCounts[d] = count
end
table.remove(active, k)
end
if totalQuantity < Config.WholesaleMinQuantity then
ps.notify(source, string.format(ps.lang('wholesale.min_quantity'), Config.WholesaleMinQuantity), 'error')
return
end
local bonusTiers = math.floor(totalQuantity / 10)
local quantityBonus = math.min(bonusTiers * Config.WholesaleQuantityBonus, Config.WholesaleMaxBonus)
local bonusMultiplier = 1 + quantityBonus
local basePayout = math.random(v.price.min, v.price.max)
local finalPayout = math.floor(basePayout * bonusMultiplier)
local totalPayout = 0
for drug, amount in pairs(itemCounts) do
ps.removeItem(source, drug, amount)
totalPayout = totalPayout + (amount * finalPayout)
end
ps.addMoney(source, 'cash', totalPayout)
TriggerClientEvent('md-drugs:client:WholesaleComplete', source, {
quantity = totalQuantity,
bonus = math.floor(quantityBonus * 100),
payout = totalPayout
})
table.remove(active, k)
break
end
end
end)
RegisterNetEvent('md-drugs:server:CleanupWholesale', function()
local Player = ps.getPlayer(source)
for k, v in pairs(active) do
if v.cid == ps.getIdentifier(source) then
table.remove(active, k)
ps.notify(source, ps.lang('wholesale.deal_failed_cleanup') or 'Deal failed - you can try again', 'error')
break
end
end
end)
+2 -11
View File
@@ -1,23 +1,14 @@
Config = {} --Ignore.
ps = exports.ps_lib:init()
ps.loadLangs("en")
ps = exports.ps_lib:init() --Ignore.
ps.loadLangs("en") -- set your language
Config.respawnTime = 100 -- Seconds
Config.Fuel = "LegacyFuel" -- type the name of script you use i.e. ps-fuel, cdn-fuel, LegacyFuel, ox_fuel
Config.TierSystem = true -- allows for three tiers of certain drugs ( coke, heroin, crack, lsd)
Config.RequestModelTime = 30000 -- if you need more time than this, uhhhh wow
Config.Badtrip = 20 -- number means % chance to spawn a clone that chases and attacks while on mescaline
Config.SuccessfulChance = 90 --- this is the chance of a Success wholesale 1-100
Config.AlertPoliceWholesale = 90 -- 1-100 of how often it will alert police
Config.WholesaleTimeout = 600 -- time in seconds to get to the location
Config.PoliceCount = 0 -- Amount of police required
Config.PoliceAlertOxy = 90 -- This is a % out of 100 to alert police
----------------------------------- TierSystem levels ** ONLY IN USE IF CONFIG.TIERSYTEM IS TRUE
Config.Tier1 = 100 -- amount to hit for level 2
Config.Tier2 = 300 -- amount to hit for level 3
---------------------------------- BRIDGE
Config.Dispatch = 'ps' -- either 'ps', 'cd', 'core', 'aty'
Config.Minigames = {
-5
View File
@@ -1,5 +0,0 @@
Consumables = {}
Consumables.defaulttime = 4000
Consumables.defaultanim = 'pflag2'
Consumables.defaultprogresstext = 'Consuming ' -- it will always show the label of the item being used after what you put here, make sure to keep the space at the end :)
Consumables.defaultstatval = 0
Binary file not shown.
Binary file not shown.
+2 -1
View File
@@ -1,4 +1,5 @@
Newest Build:4.0.0
- updated everything to ps_lib
- a lot of updates
- Credit to @fatman2778 for their rework of wholesale