- fix for weed.lua
This commit is contained in:
1 parent
20da44cf88
commit
861476ad71
3 files changed
+34
-10
No files matched your search
+14
-8
@@ -7,7 +7,7 @@ for k, v in pairs (locations.WeedDry) do
|
||||
label = ps.lang('weed.targetDry'),
|
||||
action = function()
|
||||
if not ps.hasItem('wetcannabis', 1) then
|
||||
ps.notify(ps.lang('weed.nodry'), "error")
|
||||
ps.notify(ps.lang('weed.noDry'), "error")
|
||||
return
|
||||
end
|
||||
if drying then return end
|
||||
@@ -19,14 +19,20 @@ for k, v in pairs (locations.WeedDry) do
|
||||
Wait(math.random(1000,5000))
|
||||
ps.notify(ps.lang('weed.take'), "success")
|
||||
ps.entityTarget(weedplant, {
|
||||
icon = "fa-solid fa-cannabis",
|
||||
label = ps.lang('weed.targetDryed'),
|
||||
action = function()
|
||||
DeleteEntity(weedplant)
|
||||
drying = false
|
||||
TriggerServerEvent('md-drugs:server:dryoutweed')
|
||||
end,
|
||||
{
|
||||
icon = "fa-solid fa-cannabis",
|
||||
label = ps.lang('weed.targetDryed'),
|
||||
action = function()
|
||||
DeleteEntity(weedplant)
|
||||
drying = false
|
||||
TriggerServerEvent('md-drugs:server:dryoutweed')
|
||||
end,
|
||||
}
|
||||
})
|
||||
end,
|
||||
canInteract = function()
|
||||
if drying then return false end
|
||||
return true
|
||||
end
|
||||
}
|
||||
})
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ author "mustache_dom"
|
||||
description "drugs by mustache dom"
|
||||
fx_version "cerulean"
|
||||
game "gta5"
|
||||
version '4.0.1'
|
||||
version '4.0.2'
|
||||
client_scripts {
|
||||
'client/functions.lua',
|
||||
'client/plantSpawns.lua',
|
||||
|
||||
+19
-1
@@ -1,7 +1,25 @@
|
||||
Build: 4.0.0
|
||||
- update to ps_lib
|
||||
|
||||
Newest Build: 4.0.1
|
||||
Build: 4.0.1
|
||||
- fix saving location of pill presses in xtc
|
||||
- Adjust XTC item crafting
|
||||
- notify after check for heroin baking soda
|
||||
- HOW TO UPDATE BELOW
|
||||
- bump version in fxmanifest from 4.0.0 to 4.0.1
|
||||
- redownload and add these files
|
||||
- client/xtc.lua
|
||||
- server/xtc.lua
|
||||
- version.txt
|
||||
- client/heroin.lua
|
||||
|
||||
Newest Build: 4.0.2
|
||||
- updated qb items
|
||||
- updated ox items
|
||||
- ABOVE IS JUST LABEL CHANGES AND IMAGE CHANGES NOT NECESSARY
|
||||
- fix for weed drying
|
||||
|
||||
- if you didnt update 4.0.1 here is the thing you need
|
||||
- fix saving location of pill presses in xtc
|
||||
- Adjust XTC item crafting
|
||||
- notify after check for heroin baking soda
|
||||
|
||||
Reference in new issue
Block a user