Hey guys, maybe someone can help me. I want that when I press the X key, end the collecting in my farming script with the E key, it is started. Can anyone help me?
if IsControlJustReleased(0, Keys['E']) and IsPedOnFoot(PlayerPedId()) then
if CurrentAction == 'TraubenSammler' then
TriggerServerEvent('esx_trauben:startHarvestKoda')
RequestAnimDict("anim@mp_snowball")
while not HasAnimDictLoaded("anim@mp_snowball") do
Wait(0)
end
TaskPlayAnim(PlayerPedId(), 'anim@mp_snowball', 'pickup_snowball', 1.0, -8.0, -1, 1, 500, false, false, false )