Skip to content

Commit

Permalink
Merge pull request #9 from LifeStyleRolePlay/patch-1
Browse files Browse the repository at this point in the history
Update main.lua
  • Loading branch information
BerkieBb committed Aug 24, 2021
2 parents b786335 + 33fa0f2 commit 298f3f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ end)

RegisterServerEvent('qb-weed:server:removeDeathPlant')
AddEventHandler('qb-weed:server:removeDeathPlant', function(building, plantId)
exports.ghmattimysql:execute('DELETE FROM house_plants WHERE plantid=@plantid AND building=@buildling', {['@plantid'] = plantId, ['@building'] = building})
exports.ghmattimysql:execute('DELETE FROM house_plants WHERE plantid=@plantid AND building=@building', {['@plantid'] = plantId, ['@building'] = building})
TriggerClientEvent('qb-weed:client:refreshHousePlants', -1, building)
end)

Expand Down Expand Up @@ -149,7 +149,7 @@ AddEventHandler('qb-weed:server:harvestPlant', function(house, amount, plantName
Player.Functions.AddItem('weed_'..plantName..'_seed', amount)
Player.Functions.AddItem('weed_'..plantName, sndAmount)
Player.Functions.RemoveItem('empty_weed_bag', 1)
exports.ghmattimysql:execute('DELETE FROM house_plants WHERE plantid=@plantid AND building=@buildling', {['@plantid'] = plantId, ['@building'] = house})
exports.ghmattimysql:execute('DELETE FROM house_plants WHERE plantid=@plantid AND building=@building', {['@plantid'] = plantId, ['@building'] = house})
TriggerClientEvent('QBCore:Notify', src, 'The plant has been harvested', 'success', 3500)
TriggerClientEvent('qb-weed:client:refreshHousePlants', -1, house)
else
Expand Down Expand Up @@ -187,4 +187,4 @@ AddEventHandler('qb-weed:server:foodPlant', function(house, amount, plantName, p
end
Player.Functions.RemoveItem('weed_nutrition', 1)
TriggerClientEvent('qb-weed:client:refreshHousePlants', -1, house)
end)
end)

1 comment on commit 298f3f6

@vixmxstudio
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the plants have already reached 100% how is marijuana harvested or processed?

Please sign in to comment.