Skip to content

Commit

Permalink
Update 1.1.3
Browse files Browse the repository at this point in the history
Remove Old Code
  • Loading branch information
trclassic92 committed May 29, 2022
1 parent 21528a8 commit 223ce7e
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,6 @@ RegisterNetEvent('qb-simplefarming:milkcow', function()
QBCore.Functions.TriggerCallback('qb-simplefarming:emptycowbucket', function(emptybucket)
if emptybucket then
local playerPed = PlayerPedId()
local coords = GetEntityCoords(playerPed)
TaskStartScenarioInPlace(playerPed, 'WORLD_HUMAN_BUM_WASH', 0, false)
QBCore.Functions.Progressbar('cow_milking', Config.Alerts['cow_milking'], 12000, false, true, { -- Name | Label | Time | useWhileDead | canCancel
disableMovement = true,
Expand All @@ -289,11 +288,11 @@ end)
RegisterNetEvent('qb-getcowbucket', function()
local ped = PlayerPedId()
RequestAnimDict("anim@heists@box_carry@")
Citizen.Wait(100)
Wait(100)
milkprop = CreateObject(GetHashKey("prop_old_churn_01"), 0, 0, 0, true, true, true)
AttachEntityToEntity(milkprop, PlayerPedId(), GetPedBoneIndex(PlayerPedId(), 60309), 0.12, 0, 0.30, -145.0, 100.0, 0.0, true, true, false, true, 1, true)
TaskPlayAnim(PlayerPedId(), "anim@heists@box_carry@", "idle", 2.0, 2.0, 2500, 51, 0, false, false, false)
Citizen.Wait(2500)
AttachEntityToEntity(milkprop, ped, GetPedBoneIndex(PlayerPedId(), 60309), 0.12, 0, 0.30, -145.0, 100.0, 0.0, true, true, false, true, 1, true)
TaskPlayAnim(ped, "anim@heists@box_carry@", "idle", 2.0, 2.0, 2500, 51, 0, false, false, false)
Wait(2500)
DetachEntity(milkprop, 1, true)
DeleteEntity(milkprop)
DeleteObject(milkprop)
Expand Down Expand Up @@ -506,11 +505,11 @@ RegisterNetEvent('qb-simplefarming:pumpkinfarming', function()
}, {}, {}, {}, function()
ClearPedTasks(PlayerPedId())
RequestAnimDict("anim@heists@box_carry@")
Citizen.Wait(100)
Wait(100)
pumpkinprop = CreateObject(GetHashKey("prop_veg_crop_03_pump"), 0, 0, 0, true, true, true)
AttachEntityToEntity(pumpkinprop, PlayerPedId(), GetPedBoneIndex(PlayerPedId(), 60309), 0.12, 0, 0.30, -145.0, 100.0, 0.0, true, true, false, true, 1, true)
TaskPlayAnim(PlayerPedId(), "anim@heists@box_carry@", "idle", 2.0, 2.0, 2500, 51, 0, false, false, false)
Citizen.Wait(3500)
Wait(3500)
DetachEntity(pumpkinprop, 1, true)
DeleteEntity(pumpkinprop)
DeleteObject(pumpkinprop)
Expand Down

0 comments on commit 223ce7e

Please sign in to comment.