How do i get my button press working

heer is wat i got

	
Citizen.CreateThread(function()
	while true do
		Wait(1)
			if IsControlJustReleased(1, 1) then 
--hello is my main script and the main script  is looking voor a vehicle to fix
				hello()
		end
	end
end)
	

if ( DoesEntityExist ( ped ) and not IsEntityDead ( ped ) ) then
		local pos = GetEntityCoords ( ped )
	
		if ( IsPedSittingInAnyVehicle( ped ) ) then 
			ShowNotification("get out to fix")
		
		else
		
            local playerPos = GetEntityCoords( ped, 1 )
            local inFrontOfPlayer = GetOffsetFromEntityInWorldCoords( ped, 0.0, distanceToCheck, 0.0 )
            local vehicle = GetVehicleInDirection( playerPos, inFrontOfPlayer )

            if ( DoesEntityExist( vehicle ) ) then		
				ShowNotification("vehicle is getting fix")
				SetEntityAsMissionEntity( vehicle, true, true )
				local time = 5
				while (time ~= 0) do
					Wait( 1000 )
					time = time - 1
				end
				
                SetVehicleEngineHealth(vehicle, 1000)
                SetVehicleEngineOn(vehicle, true, true)
                SetVehicleFixed(vehicle)
            else 
				ShowNotification("get near the vehicle")
			end
		end
	end
end)